mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1960378 [[Enhancement] Add icons to buttons](https://bugs.launchpad.net/calibre/+bug/1960378)
This commit is contained in:
parent
758eb98cd1
commit
ce04d47398
@ -12,7 +12,7 @@ from functools import partial
|
||||
from qt.core import (
|
||||
Qt, QDialog, QAbstractItemView, QTableWidgetItem, QIcon, QListWidgetItem,
|
||||
QCoreApplication, QEvent, QObject, QApplication, pyqtSignal, QByteArray, QMenu,
|
||||
QShortcut, QTimer)
|
||||
QShortcut, QTimer, QStyle)
|
||||
|
||||
from calibre.customize.ui import find_plugin
|
||||
from calibre.gui2 import gprefs
|
||||
@ -263,6 +263,8 @@ class Quickview(QDialog, Ui_Quickview):
|
||||
|
||||
self.close_button.setDefault(False)
|
||||
self.close_button_tooltip = _('The Quickview shortcut ({0}) shows/hides the Quickview panel')
|
||||
self.refresh_button.setIcon(QIcon.ic('view-refresh.png'))
|
||||
self.close_button.setIcon(self.style().standardIcon(QStyle.StandardPixmap.SP_DialogCloseButton))
|
||||
if self.is_pane:
|
||||
self.dock_button.setText(_('Undock'))
|
||||
self.dock_button.setToolTip(_('Show the Quickview panel in its own floating window'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user