From 83fbc82a101309e171089f0d5ed080f82a367345 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:49:11 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- noatun/modules/systray/systray.cpp | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'noatun/modules/systray/systray.cpp') diff --git a/noatun/modules/systray/systray.cpp b/noatun/modules/systray/systray.cpp index c298df37..4d008783 100644 --- a/noatun/modules/systray/systray.cpp +++ b/noatun/modules/systray/systray.cpp @@ -91,7 +91,7 @@ protected: NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(), - mTray(0), traytqStatus(0), trayBase(0), mPassivePopup(0L) + mTray(0), trayStatus(0), trayBase(0), mPassivePopup(0L) { //self = this; hide(); @@ -118,10 +118,10 @@ NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(), mTray->show(); trayBase = renderIcon(BASEICON, TQString()); - traytqStatus = renderIcon(BASEICON, "player_stop"); + trayStatus = renderIcon(BASEICON, "player_stop"); mTray->changeTitle(*trayBase, i18n("Noatun")); - showingTraytqStatus = false; + showingTrayStatus = false; mBlinkTimer = new TQTimer(this); connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlinkTimer())); @@ -138,7 +138,7 @@ NoatunSystray::~NoatunSystray() //kdDebug(66666) << k_funcinfo << "Called." << endl; removeCover(); delete trayBase; - delete traytqStatus; + delete trayStatus; napp->showInterfaces(); } @@ -213,21 +213,21 @@ void NoatunSystray::slotPlayPause() if(!item.isProperty("title")) { // No metadata - s = TQString("%1").tqarg(item.title()); + s = TQString("%1").arg(item.title()); } else { - s = TQString("

%1

").tqarg(item.property("title")); + s = TQString("

%1

").arg(item.property("title")); if(item.isProperty("author")) - s += TQString("%1
").tqarg(item.property("author")); + s += TQString("%1
").arg(item.property("author")); if(item.isProperty("album")) { if(item.isProperty("date")) - s += TQString("%1 (%2)
").tqarg(item.property("album")).tqarg(item.property("date")); + s += TQString("%1 (%2)
").arg(item.property("album")).arg(item.property("date")); else - s += TQString("%1
").tqarg(item.property("album")); + s += TQString("%1
").arg(item.property("album")); } } @@ -242,11 +242,11 @@ void NoatunSystray::slotPlayPause() setTipText(TQString("
" \ "" \ "" \ - "

%1

%2
").tqarg(status).tqarg(s).tqarg(tmpCoverPath)); + "
").arg(status).arg(s).arg(tmpCoverPath)); } else { - setTipText(TQString("

%1

%2
").tqarg(status).tqarg(s)); + setTipText(TQString("

%1

%2
").arg(status).arg(s)); } } @@ -256,16 +256,16 @@ void NoatunSystray::slotStopped() if(!napp->player()->current()) return; changeTray("player_stop"); - setTipText(TQString("

%1

").tqarg(i18n("Noatun - Stopped"))); + setTipText(TQString("

%1

").arg(i18n("Noatun - Stopped"))); } void NoatunSystray::changeTray(const TQString &pm) { - delete traytqStatus; - traytqStatus = renderIcon(BASEICON, pm); - if(showingTraytqStatus) + delete trayStatus; + trayStatus = renderIcon(BASEICON, pm); + if(showingTrayStatus) slotBlinkTimer(); } @@ -275,18 +275,18 @@ void NoatunSystray::slotBlinkTimer() switch(YHConfig::self()->stateIconDisplay()) { case (YHConfig::FlashingIcon): - showingTraytqStatus ^= true; + showingTrayStatus ^= true; break; case (YHConfig::StaticIcon): - showingTraytqStatus = true; + showingTrayStatus = true; break; case (YHConfig::NoIcon): - showingTraytqStatus = false; + showingTrayStatus = false; break; } - if(showingTraytqStatus) - mTray->setPixmap(*traytqStatus); + if(showingTrayStatus) + mTray->setPixmap(*trayStatus); else mTray->setPixmap(*trayBase); } -- cgit v1.2.3