mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
set custom button height on win32
This commit is contained in:
parent
cba494c5ad
commit
4735f0ec7b
2 changed files with 8 additions and 0 deletions
|
@ -119,6 +119,8 @@ class AnkiQt(QMainWindow):
|
||||||
self.mainWin.noticeFrame.setShown(False)
|
self.mainWin.noticeFrame.setShown(False)
|
||||||
self.connect(self.mainWin.noticeButton, SIGNAL("clicked()"),
|
self.connect(self.mainWin.noticeButton, SIGNAL("clicked()"),
|
||||||
lambda: self.mainWin.noticeFrame.setShown(False))
|
lambda: self.mainWin.noticeFrame.setShown(False))
|
||||||
|
if sys.platform.startswith("win32"):
|
||||||
|
self.mainWin.noticeButton.setFixedWidth(24)
|
||||||
|
|
||||||
def setNotice(self, str):
|
def setNotice(self, str):
|
||||||
self.mainWin.noticeLabel.setText(str)
|
self.mainWin.noticeLabel.setText(str)
|
||||||
|
|
|
@ -529,6 +529,12 @@
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>25</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>X</string>
|
<string>X</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue