Author: tgoettlicher Date: Fri Aug 3 14:45:15 2007 New Revision: 6439 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6439&view=rev Log: moved notification timer to constructor Modified: trunk/updater-kde/po/createPot trunk/updater-kde/updater/TrayIcon.cpp Modified: trunk/updater-kde/po/createPot URL: http://svn.opensuse.org/viewcvs/zypp/trunk/updater-kde/po/createPot?rev=6439&r1=6438&r2=6439&view=diff ============================================================================== --- trunk/updater-kde/po/createPot (original) +++ trunk/updater-kde/po/createPot Fri Aug 3 14:45:15 2007 @@ -9,4 +9,4 @@ -o -name "*.cpp"` echo $SRCFILES #calling xgettext with the sourcefiles -xgettext --no-wrap --add-comments --add-location --keyword=i18n --keyword=_ --keyword=_:1,2 --keyword=__ --keyword=N_ --foreign-user --copyright-holder="SuSE Linux Products GmbH, Nuernberg" --default-domain=libzypp --output=opensuseupdater.pot $SRCFILES +xgettext --no-wrap --add-comments --add-location --keyword=i18n --keyword=_ --keyword=_:1,2 --keyword=__ --keyword=N_ --foreign-user --copyright-holder="SuSE Linux Products GmbH, Nuernberg" --default-domain=opensuseupdater --output=opensuseupdater.pot $SRCFILES Modified: trunk/updater-kde/updater/TrayIcon.cpp URL: http://svn.opensuse.org/viewcvs/zypp/trunk/updater-kde/updater/TrayIcon.cpp?rev=6439&r1=6438&r2=6439&view=diff ============================================================================== --- trunk/updater-kde/updater/TrayIcon.cpp (original) +++ trunk/updater-kde/updater/TrayIcon.cpp Fri Aug 3 14:45:15 2007 @@ -57,6 +57,13 @@ popup->setView(popupWidget); connect(popup, SIGNAL(clicked()), this, SLOT(popupClicked())); + int warnInterval = UpdaterSettings::self()->warnInterval() * 60 * 1000; // convert minutes to ms + if (warnInterval > 0 ) + { + QTimer *timer = new QTimer (this); + connect (timer, SIGNAL(timeout()), this, SLOT(showPopup() )); + timer->start(warnInterval,false); + } kdDebug() << "Tray Icon ready" << endl; } @@ -113,11 +120,6 @@ { QToolTip::add(this, i18n("New software for your system is available")); popup->show(); - - int warnInterval = UpdaterSettings::self()->warnInterval() * 60 * 1000; // convert minutes to ms - - if (warnInterval > 0 ) - QTimer::singleShot( warnInterval, this , SLOT(showPopup() )); } } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org