forked from openlp/openlp
Added tool tip
This commit is contained in:
parent
04c719e807
commit
74382d1466
@ -132,27 +132,28 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.select_tab.setSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
|
self.select_tab.setSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
|
||||||
self.search_tab_bar.addTab(translate('BiblesPlugin.MediaItem', 'Select'))
|
self.search_tab_bar.addTab(translate('BiblesPlugin.MediaItem', 'Select'))
|
||||||
self.select_layout = QtWidgets.QFormLayout(self.select_tab)
|
self.select_layout = QtWidgets.QFormLayout(self.select_tab)
|
||||||
self.book_layout = QtWidgets.QHBoxLayout(self.select_tab)
|
self.book_layout = QtWidgets.QHBoxLayout()
|
||||||
self.select_book_combo_box = create_horizontal_adjusting_combo_box(self.select_tab, 'select_book_combo_box')
|
self.select_book_combo_box = create_horizontal_adjusting_combo_box(self.select_tab, 'select_book_combo_box')
|
||||||
self.book_layout.addWidget(self.select_book_combo_box)
|
self.book_layout.addWidget(self.select_book_combo_box)
|
||||||
self.book_order_button = QtWidgets.QToolButton()
|
self.book_order_button = QtWidgets.QToolButton()
|
||||||
self.book_order_button.setIcon(self.sort_icon)
|
self.book_order_button.setIcon(self.sort_icon)
|
||||||
self.book_order_button.setCheckable(True)
|
self.book_order_button.setCheckable(True)
|
||||||
|
self.book_order_button.setToolTip(translate('BiblesPlugin.MediaItem', 'Sort bible books alphabetically.'))
|
||||||
self.book_layout.addWidget(self.book_order_button)
|
self.book_layout.addWidget(self.book_order_button)
|
||||||
self.select_layout.addRow(translate('BiblesPlugin.MediaItem', 'Book:'), self.book_layout)
|
self.select_layout.addRow(translate('BiblesPlugin.MediaItem', 'Book:'), self.book_layout)
|
||||||
self.verse_title_layout = QtWidgets.QHBoxLayout(self.select_tab)
|
self.verse_title_layout = QtWidgets.QHBoxLayout()
|
||||||
self.chapter_label = QtWidgets.QLabel(self.select_tab)
|
self.chapter_label = QtWidgets.QLabel(self.select_tab)
|
||||||
self.verse_title_layout.addWidget(self.chapter_label)
|
self.verse_title_layout.addWidget(self.chapter_label)
|
||||||
self.verse_label = QtWidgets.QLabel(self.select_tab)
|
self.verse_label = QtWidgets.QLabel(self.select_tab)
|
||||||
self.verse_title_layout.addWidget(self.verse_label)
|
self.verse_title_layout.addWidget(self.verse_label)
|
||||||
self.select_layout.addRow('', self.verse_title_layout)
|
self.select_layout.addRow('', self.verse_title_layout)
|
||||||
self.from_layout = QtWidgets.QHBoxLayout(self.select_tab)
|
self.from_layout = QtWidgets.QHBoxLayout()
|
||||||
self.from_chapter = QtWidgets.QComboBox(self.select_tab)
|
self.from_chapter = QtWidgets.QComboBox(self.select_tab)
|
||||||
self.from_layout.addWidget(self.from_chapter)
|
self.from_layout.addWidget(self.from_chapter)
|
||||||
self.from_verse = QtWidgets.QComboBox(self.select_tab)
|
self.from_verse = QtWidgets.QComboBox(self.select_tab)
|
||||||
self.from_layout.addWidget(self.from_verse)
|
self.from_layout.addWidget(self.from_verse)
|
||||||
self.select_layout.addRow(translate('BiblesPlugin.MediaItem', 'From:'), self.from_layout)
|
self.select_layout.addRow(translate('BiblesPlugin.MediaItem', 'From:'), self.from_layout)
|
||||||
self.to_layout = QtWidgets.QHBoxLayout(self.select_tab)
|
self.to_layout = QtWidgets.QHBoxLayout()
|
||||||
self.to_chapter = QtWidgets.QComboBox(self.select_tab)
|
self.to_chapter = QtWidgets.QComboBox(self.select_tab)
|
||||||
self.to_layout.addWidget(self.to_chapter)
|
self.to_layout.addWidget(self.to_chapter)
|
||||||
self.to_verse = QtWidgets.QComboBox(self.select_tab)
|
self.to_verse = QtWidgets.QComboBox(self.select_tab)
|
||||||
@ -170,7 +171,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.style_combo_box = create_horizontal_adjusting_combo_box(self, 'style_combo_box')
|
self.style_combo_box = create_horizontal_adjusting_combo_box(self, 'style_combo_box')
|
||||||
self.style_combo_box.addItems(['', '', ''])
|
self.style_combo_box.addItems(['', '', ''])
|
||||||
self.general_bible_layout.addRow(UiStrings().LayoutStyle, self.style_combo_box)
|
self.general_bible_layout.addRow(UiStrings().LayoutStyle, self.style_combo_box)
|
||||||
self.search_button_layout = QtWidgets.QHBoxLayout(self.options_widget)
|
self.search_button_layout = QtWidgets.QHBoxLayout()
|
||||||
self.search_button_layout.addStretch()
|
self.search_button_layout.addStretch()
|
||||||
# Note: If we use QPushButton instead of the QToolButton, the icon will be larger than the Lock icon.
|
# Note: If we use QPushButton instead of the QToolButton, the icon will be larger than the Lock icon.
|
||||||
self.clear_button = QtWidgets.QToolButton(self)
|
self.clear_button = QtWidgets.QToolButton(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user