mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6b5af3953a
commit
dd97a1b705
@ -191,6 +191,9 @@ class FontFamilyChooser(QWidget):
|
|||||||
self.clear_button.setIcon(QIcon(I('clear_left.png')))
|
self.clear_button.setIcon(QIcon(I('clear_left.png')))
|
||||||
self.clear_button.clicked.connect(self.clear_family)
|
self.clear_button.clicked.connect(self.clear_family)
|
||||||
l.addWidget(self.clear_button)
|
l.addWidget(self.clear_button)
|
||||||
|
self.setToolTip = self.button.setToolTip
|
||||||
|
self.toolTip = self.button.toolTip
|
||||||
|
self.clear_button.setToolTip(_('Clear the font family'))
|
||||||
|
|
||||||
def clear_family(self):
|
def clear_family(self):
|
||||||
self.font_family = None
|
self.font_family = None
|
||||||
@ -212,7 +215,6 @@ class FontFamilyChooser(QWidget):
|
|||||||
if d.exec_() == d.Accepted:
|
if d.exec_() == d.Accepted:
|
||||||
self.font_family = d.font_family
|
self.font_family = d.font_family
|
||||||
|
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
app
|
app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user