From 99f9f9cc401c0b65fbcc5838eb47fdff8e732e09 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 8 Feb 2009 05:05:50 +0900 Subject: [PATCH] set fixed button height for win32 --- ankiqt/ui/facteditor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index 17f4e5414..014fe0c32 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -141,6 +141,7 @@ class FactEditor(object): self.foreground.setFocusPolicy(Qt.NoFocus) self.foreground.setEnabled(False) self.foreground.setFixedWidth(30) + self.foreground.setFixedHeight(26) self.foregroundFrame = QFrame() self.foregroundFrame.setAutoFillBackground(True) hbox = QHBoxLayout() @@ -190,6 +191,7 @@ class FactEditor(object): self.more.setFocusPolicy(Qt.NoFocus) self.more.setEnabled(False) self.more.setFixedWidth(30) + self.more.setFixedHeight(26) self.iconsBox.addWidget(self.more) self.more.setStyle(self.plastiqueStyle) # preview @@ -217,6 +219,7 @@ class FactEditor(object): self.cloze.setToolTip(_("Cloze (F6)")) #self.cloze.setIcon(QIcon(":/icons/document-cloze.png")) self.cloze.setFixedWidth(30) + self.cloze.setFixedHeight(26) self.cloze.setText("(...)") self.cloze.setFocusPolicy(Qt.NoFocus) self.cloze.setEnabled(False)