From f59dfa08651a47f21d004e8e4cb5020b8035287e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:25 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 83fbc82a101309e171089f0d5ed080f82a367345. --- noatun/modules/systray/cmodule.cpp | 2 +- noatun/modules/systray/kitsystemtray.cpp | 2 +- noatun/modules/systray/systray.cpp | 40 ++++++++++++++++---------------- noatun/modules/systray/systray.h | 4 ++-- noatun/modules/systray/yhconfigwidget.ui | 6 ++--- 5 files changed, 27 insertions(+), 27 deletions(-) (limited to 'noatun/modules/systray') diff --git a/noatun/modules/systray/cmodule.cpp b/noatun/modules/systray/cmodule.cpp index 58b83f3b..c0e04fd3 100644 --- a/noatun/modules/systray/cmodule.cpp +++ b/noatun/modules/systray/cmodule.cpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp index a0b545ab..95bbb698 100644 --- a/noatun/modules/systray/kitsystemtray.cpp +++ b/noatun/modules/systray/kitsystemtray.cpp @@ -47,7 +47,7 @@ KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name) : KSystemTray(parent, name) { - setAlignment(AlignHCenter | AlignVCenter); + tqsetAlignment(AlignHCenter | AlignVCenter); menu = (KPopupMenu *)parent->guiFactory()->container(contextMenu, parent); menu->insertTitle(SmallIcon("noatun"), TQString(), 0, 0); setAcceptDrops(true); diff --git a/noatun/modules/systray/systray.cpp b/noatun/modules/systray/systray.cpp index 4d008783..c298df37 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), trayStatus(0), trayBase(0), mPassivePopup(0L) + mTray(0), traytqStatus(0), trayBase(0), mPassivePopup(0L) { //self = this; hide(); @@ -118,10 +118,10 @@ NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(), mTray->show(); trayBase = renderIcon(BASEICON, TQString()); - trayStatus = renderIcon(BASEICON, "player_stop"); + traytqStatus = renderIcon(BASEICON, "player_stop"); mTray->changeTitle(*trayBase, i18n("Noatun")); - showingTrayStatus = false; + showingTraytqStatus = 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 trayStatus; + delete traytqStatus; napp->showInterfaces(); } @@ -213,21 +213,21 @@ void NoatunSystray::slotPlayPause() if(!item.isProperty("title")) { // No metadata - s = TQString("%1").arg(item.title()); + s = TQString("%1").tqarg(item.title()); } else { - s = TQString("

%1

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

%1

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

%1

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

%1

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

%1

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

%1

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

%1

").tqarg(i18n("Noatun - Stopped"))); } void NoatunSystray::changeTray(const TQString &pm) { - delete trayStatus; - trayStatus = renderIcon(BASEICON, pm); - if(showingTrayStatus) + delete traytqStatus; + traytqStatus = renderIcon(BASEICON, pm); + if(showingTraytqStatus) slotBlinkTimer(); } @@ -275,18 +275,18 @@ void NoatunSystray::slotBlinkTimer() switch(YHConfig::self()->stateIconDisplay()) { case (YHConfig::FlashingIcon): - showingTrayStatus ^= true; + showingTraytqStatus ^= true; break; case (YHConfig::StaticIcon): - showingTrayStatus = true; + showingTraytqStatus = true; break; case (YHConfig::NoIcon): - showingTrayStatus = false; + showingTraytqStatus = false; break; } - if(showingTrayStatus) - mTray->setPixmap(*trayStatus); + if(showingTraytqStatus) + mTray->setPixmap(*traytqStatus); else mTray->setPixmap(*trayBase); } diff --git a/noatun/modules/systray/systray.h b/noatun/modules/systray/systray.h index efab29be..11743a22 100644 --- a/noatun/modules/systray/systray.h +++ b/noatun/modules/systray/systray.h @@ -69,11 +69,11 @@ private: private: KitSystemTray *mTray; TQTimer *mBlinkTimer; - TQPixmap *trayStatus; + TQPixmap *traytqStatus; TQPixmap *trayBase; PassivePopup *mPassivePopup; - bool showingTrayStatus; + bool showingTraytqStatus; TQString tipText; TQString tmpCoverPath; }; diff --git a/noatun/modules/systray/yhconfigwidget.ui b/noatun/modules/systray/yhconfigwidget.ui index 02ea0a1c..f63d7319 100644 --- a/noatun/modules/systray/yhconfigwidget.ui +++ b/noatun/modules/systray/yhconfigwidget.ui @@ -169,7 +169,7 @@ Expanding - + 20 81 @@ -231,7 +231,7 @@ - layout1 + tqlayout1 @@ -299,7 +299,7 @@ Expanding - + 20 21 -- cgit v1.2.1