mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use a hand cursor for all buttons in the main window
This commit is contained in:
parent
34acecce6a
commit
5ae7d5ff4b
@ -179,6 +179,7 @@ class SearchBar(QWidget): # {{{
|
||||
self._layout.setContentsMargins(0,5,0,0)
|
||||
|
||||
x = QToolButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
x.setText(_('Virtual library'))
|
||||
x.setIcon(QIcon(I('lt.png')))
|
||||
x.setObjectName("virtual_library")
|
||||
@ -201,6 +202,7 @@ class SearchBar(QWidget): # {{{
|
||||
x.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
|
||||
|
||||
parent.advanced_search_button = x = QToolButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
parent.advanced_search_toggle_action = ac = QAction(parent)
|
||||
parent.addAction(ac)
|
||||
parent.keyboard.register_shortcut('advanced search toggle',
|
||||
@ -222,6 +224,7 @@ class SearchBar(QWidget): # {{{
|
||||
self.search_button = QToolButton()
|
||||
self.search_button.setToolButtonStyle(Qt.ToolButtonTextOnly)
|
||||
self.search_button.setText(_('Go!'))
|
||||
self.search_button.setCursor(Qt.PointingHandCursor)
|
||||
l.addWidget(self.search_button)
|
||||
self.search_button.setSizePolicy(QSizePolicy.Minimum,
|
||||
QSizePolicy.Minimum)
|
||||
@ -241,6 +244,7 @@ class SearchBar(QWidget): # {{{
|
||||
x.setVisible(tweaks['show_saved_search_box'])
|
||||
|
||||
x = parent.copy_search_button = QToolButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
x.setIcon(QIcon(I("search_copy_saved.png")))
|
||||
x.setObjectName("copy_search_button")
|
||||
l.addWidget(x)
|
||||
@ -248,12 +252,14 @@ class SearchBar(QWidget): # {{{
|
||||
x.setVisible(tweaks['show_saved_search_box'])
|
||||
|
||||
x = parent.save_search_button = RightClickButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
x.setIcon(QIcon(I("search_add_saved.png")))
|
||||
x.setObjectName("save_search_button")
|
||||
l.addWidget(x)
|
||||
x.setVisible(tweaks['show_saved_search_box'])
|
||||
|
||||
x = parent.add_saved_search_button = RightClickButton(self)
|
||||
x.setCursor(Qt.PointingHandCursor)
|
||||
x.setIcon(QIcon(I("plus.png")))
|
||||
l.addWidget(x)
|
||||
x.setVisible(not tweaks['show_saved_search_box'])
|
||||
|
@ -372,6 +372,7 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
ac.triggered.connect(self.set_focus_to_find_box)
|
||||
|
||||
self.search_button = QToolButton()
|
||||
self.search_button.setCursor(Qt.PointingHandCursor)
|
||||
self.search_button.setText(_('Find'))
|
||||
self.search_button.setToolTip(_('Find the first/next matching item'))
|
||||
search_layout.addWidget(self.search_button)
|
||||
@ -383,6 +384,7 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
ac.triggered.connect(self.search_button.click)
|
||||
|
||||
self.expand_button = QToolButton()
|
||||
self.expand_button.setCursor(Qt.PointingHandCursor)
|
||||
self.expand_button.setText('▶')
|
||||
self.expand_button.setToolTip(_('Collapse all categories'))
|
||||
search_layout.insertWidget(0, self.expand_button)
|
||||
@ -425,6 +427,7 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
self.not_found_label_timer.timeout.connect(self.not_found_label_timer_event,
|
||||
type=Qt.QueuedConnection)
|
||||
self.toggle_search_button = b = QToolButton(self)
|
||||
b.setCursor(Qt.PointingHandCursor)
|
||||
b.setIcon(QIcon(I('search.png')))
|
||||
b.setCheckable(True)
|
||||
search_layout.insertWidget(1, b)
|
||||
@ -432,6 +435,7 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
b.setToolTip(_('Search for items in the Tag browser'))
|
||||
b.toggled.connect(self.update_search_state)
|
||||
parent.alter_tb = l = QToolButton(parent)
|
||||
l.setCursor(Qt.PointingHandCursor)
|
||||
l.setPopupMode(l.InstantPopup)
|
||||
l.setToolTip(_('Alter Tag browser'))
|
||||
l.setIcon(QIcon(I('config.png')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user