Mailinglist Archive: zypp-commit (168 mails)
| < Previous | Next > |
[zypp-commit] r8038 - /branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
- From: tgoettlicher@xxxxxxxxxxxxxxxx
- Date: Wed, 05 Dec 2007 16:27:10 -0000
- Message-id: <20071205162710.8C01B2F664@xxxxxxxxxxxxxxxx>
Author: tgoettlicher
Date: Wed Dec 5 17:27:10 2007
New Revision: 8038
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8038&view=rev
Log:
backup
Modified:
branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
Modified: branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
URL:
http://svn.opensuse.org/viewcvs/zypp/branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp?rev=8038&r1=8037&r2=8038&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
(original)
+++ branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp Wed
Dec 5 17:27:10 2007
@@ -48,7 +48,8 @@
// construct notification popup
- popup = new KPassivePopup(this);
+// popup = new KPassivePopup(this);
+ popup = new KPassivePopup();
QWidget *popupWidget = new QWidget(popup);
Q3HBoxLayout *vb = new Q3HBoxLayout(popupWidget);
QLabel *iconLabel = new QLabel(popupWidget);
@@ -74,13 +75,14 @@
void TrayIcon::setState(int state, const QString &description )
{
kdDebug() << "Set applet status to: " << state << endl;
- QToolTip::remove(this);
+// QToolTip::remove(this);
appletState = state;
switch (state)
{
case APPLET_CHECKING:
if (UpdaterSettings::self()->checkingAnimation())
- setMovie(QMovie(
KIconLoader::global()->moviePath(TRAY_ICON_CHECKING, KIconLoader::Panel) ));
+//TODO setMovie(QMovie(
KIconLoader::global()->moviePath(TRAY_ICON_CHECKING, KIconLoader::Panel) ));
+ setPixmap(loadIcon(TRAY_ICON_CHECKING));
QToolTip::add(this, i18n("Checking for updates..."));
break;
@@ -118,7 +120,8 @@
break;
case APPLET_INSTALLING:
- setMovie(QMovie(
KGlobal::iconLoader()->moviePath(TRAY_ICON_INSTALLING, KIcon::Panel) ));
+//TODO setMovie(QMovie(
KGlobal::iconLoader()->moviePath(TRAY_ICON_INSTALLING, KIcon::Panel) ));
+ setPixmap(loadIcon(TRAY_ICON_CHECKING));
QToolTip::add(this, i18n("Updating..."));
break;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
Date: Wed Dec 5 17:27:10 2007
New Revision: 8038
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8038&view=rev
Log:
backup
Modified:
branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
Modified: branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
URL:
http://svn.opensuse.org/viewcvs/zypp/branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp?rev=8038&r1=8037&r2=8038&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp
(original)
+++ branches/tmp/tgoettlicher/updater-kde_qt4porting/updater/TrayIcon.cpp Wed
Dec 5 17:27:10 2007
@@ -48,7 +48,8 @@
// construct notification popup
- popup = new KPassivePopup(this);
+// popup = new KPassivePopup(this);
+ popup = new KPassivePopup();
QWidget *popupWidget = new QWidget(popup);
Q3HBoxLayout *vb = new Q3HBoxLayout(popupWidget);
QLabel *iconLabel = new QLabel(popupWidget);
@@ -74,13 +75,14 @@
void TrayIcon::setState(int state, const QString &description )
{
kdDebug() << "Set applet status to: " << state << endl;
- QToolTip::remove(this);
+// QToolTip::remove(this);
appletState = state;
switch (state)
{
case APPLET_CHECKING:
if (UpdaterSettings::self()->checkingAnimation())
- setMovie(QMovie(
KIconLoader::global()->moviePath(TRAY_ICON_CHECKING, KIconLoader::Panel) ));
+//TODO setMovie(QMovie(
KIconLoader::global()->moviePath(TRAY_ICON_CHECKING, KIconLoader::Panel) ));
+ setPixmap(loadIcon(TRAY_ICON_CHECKING));
QToolTip::add(this, i18n("Checking for updates..."));
break;
@@ -118,7 +120,8 @@
break;
case APPLET_INSTALLING:
- setMovie(QMovie(
KGlobal::iconLoader()->moviePath(TRAY_ICON_INSTALLING, KIcon::Panel) ));
+//TODO setMovie(QMovie(
KGlobal::iconLoader()->moviePath(TRAY_ICON_INSTALLING, KIcon::Panel) ));
+ setPixmap(loadIcon(TRAY_ICON_CHECKING));
QToolTip::add(this, i18n("Updating..."));
break;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |