diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-16 09:33:54 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-16 11:10:49 (GMT) |
commit | 4aa94a353224c14265446276277a91339f2e415d (patch) | |
tree | b8ca318c4400f2fb50f6bbdd4993d85dd1b6bd5b /demos | |
parent | f8fba0d48a1f30540ddf15f0d36f415b192d1d8b (diff) | |
download | Qt-4aa94a353224c14265446276277a91339f2e415d.zip Qt-4aa94a353224c14265446276277a91339f2e415d.tar.gz Qt-4aa94a353224c14265446276277a91339f2e415d.tar.bz2 |
BT: Mac: QtDemo is really sluggish when opening menus
This has to do with coalesced updates. The easy fix for now is
to fix QtDemo itself, meaning: always use a steady timer for
redrawing the viewport of the graphics view (as opposed to let
each item on screen calling update whenever they move)
Task-number: 250667
Reviewed-by: Trenton Schulz
Diffstat (limited to 'demos')
-rw-r--r-- | demos/qtdemo/colors.cpp | 3 | ||||
-rw-r--r-- | demos/qtdemo/menumanager.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/qtdemo/colors.cpp b/demos/qtdemo/colors.cpp index 18343cb..41bbfb3 100644 --- a/demos/qtdemo/colors.cpp +++ b/demos/qtdemo/colors.cpp @@ -278,6 +278,9 @@ void Colors::parseArgs(int argc, char *argv[]) + "[-low] [-ticker-letters<int>] [-ticker-speed<float>] [-no-ticker-morph] " + "[-ticker-morph-speed<float>] [-ticker-text<string>]"); exit(0); + } else{ + QMessageBox::warning(0, "QtDemo", QString("Unrecognized argument:\n") + s); + exit(0); } } diff --git a/demos/qtdemo/menumanager.cpp b/demos/qtdemo/menumanager.cpp index bfa2e3f..a9e9b4b 100644 --- a/demos/qtdemo/menumanager.cpp +++ b/demos/qtdemo/menumanager.cpp @@ -184,7 +184,6 @@ void MenuManager::itemSelected(int userCode, const QString &menuName) this->tickerInAnim->startDelay = 2000; this->ticker->useGuideQt(); this->score->queueMovie("ticker", Score::NEW_ANIMATION_ONLY); - this->window->switchTimerOnOff(true); } break; case MENU1: @@ -220,7 +219,6 @@ void MenuManager::itemSelected(int userCode, const QString &menuName) this->score->queueMovie(this->currentInfo + " -buttons", Score::NEW_ANIMATION_ONLY); if (!Colors::noTicker){ this->score->queueMovie("ticker -out", Score::NEW_ANIMATION_ONLY); - this->window->switchTimerOnOff(false); } break; case UP:{ @@ -257,7 +255,6 @@ void MenuManager::itemSelected(int userCode, const QString &menuName) this->ticker->doIntroTransitions = false; this->tickerInAnim->startDelay = 500; this->score->queueMovie("ticker", Score::NEW_ANIMATION_ONLY); - this->window->switchTimerOnOff(true); } } else if (this->currentMenuCode != ROOT) itemSelected(ROOT, Colors::rootMenuName); |