set custom button height on win32

This commit is contained in:
Damien Elmes 2009-06-16 03:15:37 +09:00
parent cba494c5ad
commit 4735f0ec7b
2 changed files with 8 additions and 0 deletions

View file

@ -119,6 +119,8 @@ class AnkiQt(QMainWindow):
self.mainWin.noticeFrame.setShown(False)
self.connect(self.mainWin.noticeButton, SIGNAL("clicked()"),
lambda: self.mainWin.noticeFrame.setShown(False))
if sys.platform.startswith("win32"):
self.mainWin.noticeButton.setFixedWidth(24)
def setNotice(self, str):
self.mainWin.noticeLabel.setText(str)

View file

@ -529,6 +529,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>X</string>
</property>