mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Throbbing donate tool button on OS X.
This commit is contained in:
parent
f7ca790c90
commit
41074dc97e
@ -382,16 +382,12 @@ class ToolBar(QToolBar): # {{{
|
|||||||
bar.added_actions.append(ac)
|
bar.added_actions.append(ac)
|
||||||
bar.setup_tool_button(bar, ac, QToolButton.MenuButtonPopup)
|
bar.setup_tool_button(bar, ac, QToolButton.MenuButtonPopup)
|
||||||
elif what == 'Donate':
|
elif what == 'Donate':
|
||||||
if isosx:
|
self.d_widget = QWidget()
|
||||||
bar.addAction(self.gui.donate_action)
|
self.d_widget.setLayout(QVBoxLayout())
|
||||||
ch = self.setup_tool_button(bar, self.gui.donate_action)
|
self.d_widget.layout().addWidget(self.donate_button)
|
||||||
ch.setText(_('Donate'))
|
self.d_widget.setStyleSheet('QWidget, QToolButton {background-color: none; border: none; }')
|
||||||
else:
|
bar.addWidget(self.d_widget)
|
||||||
self.d_widget = QWidget()
|
self.showing_donate = True
|
||||||
self.d_widget.setLayout(QVBoxLayout())
|
|
||||||
self.d_widget.layout().addWidget(self.donate_button)
|
|
||||||
bar.addWidget(self.d_widget)
|
|
||||||
self.showing_donate = True
|
|
||||||
elif what in self.gui.iactions:
|
elif what in self.gui.iactions:
|
||||||
action = self.gui.iactions[what]
|
action = self.gui.iactions[what]
|
||||||
bar.addAction(action.qaction)
|
bar.addAction(action.qaction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user