From 20ec3bef2be3e190b74fae1be3dc82c567c571e3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 5 Jan 2009 16:10:19 +0900 Subject: [PATCH] fix flicker, various ui tweaks --- ankiqt/ui/main.py | 8 +++++--- designer/deckproperties.ui | 4 ++-- designer/main.ui | 41 ++++++++++++++++++++++++++++---------- 3 files changed, 37 insertions(+), 16 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 3e6fc3edb..5853d06cf 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -939,13 +939,15 @@ To upgrade an old deck, download Anki 0.9.8.7.""")) ankiqt.appWiki + "StudyOptions"))) def showStudyScreen(self): - self.switchToStudyScreen() self.mainWin.optionsButton.setChecked(self.config['showStudyOptions']) self.mainWin.optionsBox.setShown(self.config['showStudyOptions']) + self.switchToStudyScreen() initial = self.deck.sessionStartTime == 0 - if initial or not self.deck.sessionLimitReached(): + if initial: # deck just opened, or screen triggered manually - top = _("

Welcome back!

") + top = _("

Welcome Back!

") + elif not self.deck.sessionLimitReached(): + top = _("

Study Options

") else: top = _("

Well done!

") # top label diff --git a/designer/deckproperties.ui b/designer/deckproperties.ui index ba74e14c5..1fc210a3c 100644 --- a/designer/deckproperties.ui +++ b/designer/deckproperties.ui @@ -8,7 +8,7 @@ 0 0 - 335 + 391 400 @@ -29,7 +29,7 @@ 0 0 - 319 + 375 334 diff --git a/designer/main.ui b/designer/main.ui index b092fab4c..3c8655805 100644 --- a/designer/main.ui +++ b/designer/main.ui @@ -164,8 +164,8 @@ 0 0 - 550 - 413 + 542 + 504 @@ -186,8 +186,8 @@ 0 0 - 550 - 413 + 542 + 504 @@ -216,6 +216,9 @@ + + 4 + @@ -229,7 +232,7 @@ Qt::Vertical - QSizePolicy::Preferred + QSizePolicy::Fixed @@ -246,7 +249,7 @@ - Review &Options>> + Options>> true @@ -308,7 +311,7 @@ - + @@ -331,7 +334,7 @@ - + @@ -347,7 +350,7 @@ - + Qt::Horizontal @@ -373,7 +376,7 @@ - + @@ -389,6 +392,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 10 + 20 + + + + @@ -1673,7 +1692,7 @@ :/icons/chronometer.png:/icons/chronometer.png - &Study Options + &Study Options...