From 74382d1466cf59a6be70715c350882593ade47aa Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Sat, 18 Feb 2017 20:22:47 +0000 Subject: [PATCH] Added tool tip --- openlp/plugins/bibles/lib/mediaitem.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/openlp/plugins/bibles/lib/mediaitem.py b/openlp/plugins/bibles/lib/mediaitem.py index 8813e79bc..9344fab63 100644 --- a/openlp/plugins/bibles/lib/mediaitem.py +++ b/openlp/plugins/bibles/lib/mediaitem.py @@ -132,27 +132,28 @@ class BibleMediaItem(MediaManagerItem): self.select_tab.setSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) self.search_tab_bar.addTab(translate('BiblesPlugin.MediaItem', 'Select')) 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.book_layout.addWidget(self.select_book_combo_box) self.book_order_button = QtWidgets.QToolButton() self.book_order_button.setIcon(self.sort_icon) 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.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.verse_title_layout.addWidget(self.chapter_label) self.verse_label = QtWidgets.QLabel(self.select_tab) self.verse_title_layout.addWidget(self.verse_label) 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_layout.addWidget(self.from_chapter) self.from_verse = QtWidgets.QComboBox(self.select_tab) self.from_layout.addWidget(self.from_verse) 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_layout.addWidget(self.to_chapter) 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.addItems(['', '', '']) 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() # Note: If we use QPushButton instead of the QToolButton, the icon will be larger than the Lock icon. self.clear_button = QtWidgets.QToolButton(self)