diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:49:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:49:11 -0600 |
commit | 83fbc82a101309e171089f0d5ed080f82a367345 (patch) | |
tree | c7b61083b6e2d4bfceaace9a7f018181ea36afec /noatun/modules/systray | |
parent | b248983f92b865ef74636ab5a673ae3a88f79c20 (diff) | |
download | tdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.tar.gz tdemultimedia-83fbc82a101309e171089f0d5ed080f82a367345.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'noatun/modules/systray')
-rw-r--r-- | noatun/modules/systray/cmodule.cpp | 2 | ||||
-rw-r--r-- | noatun/modules/systray/kitsystemtray.cpp | 2 | ||||
-rw-r--r-- | noatun/modules/systray/systray.cpp | 40 | ||||
-rw-r--r-- | noatun/modules/systray/systray.h | 4 | ||||
-rw-r--r-- | noatun/modules/systray/yhconfigwidget.ui | 6 |
5 files changed, 27 insertions, 27 deletions
diff --git a/noatun/modules/systray/cmodule.cpp b/noatun/modules/systray/cmodule.cpp index c0e04fd3..58b83f3b 100644 --- a/noatun/modules/systray/cmodule.cpp +++ b/noatun/modules/systray/cmodule.cpp @@ -35,7 +35,7 @@ #include <tqcombobox.h> #include <tqhbox.h> #include <tqlabel.h> -#include <tqlayout.h> +#include <layout.h> #include <tqradiobutton.h> #include <tqspinbox.h> diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp index 95bbb698..a0b545ab 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) { - tqsetAlignment(AlignHCenter | AlignVCenter); + setAlignment(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 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("<nobr>%1</nobr>").tqarg(item.title()); + s = TQString("<nobr>%1</nobr>").arg(item.title()); } else { - s = TQString("<h2><nobr>%1</nobr></h2>").tqarg(item.property("title")); + s = TQString("<h2><nobr>%1</nobr></h2>").arg(item.property("title")); if(item.isProperty("author")) - s += TQString("<nobr>%1</nobr><br>").tqarg(item.property("author")); + s += TQString("<nobr>%1</nobr><br>").arg(item.property("author")); if(item.isProperty("album")) { if(item.isProperty("date")) - s += TQString("<nobr>%1 (%2)</nobr><br>").tqarg(item.property("album")).tqarg(item.property("date")); + s += TQString("<nobr>%1 (%2)</nobr><br>").arg(item.property("album")).arg(item.property("date")); else - s += TQString("<nobr>%1</nobr><br>").tqarg(item.property("album")); + s += TQString("<nobr>%1</nobr><br>").arg(item.property("album")); } } @@ -242,11 +242,11 @@ void NoatunSystray::slotPlayPause() setTipText(TQString("<qt><br><table cellspacing=0 cellpadding=0><tr>" \ "<td align=center valign=center><h4><nobr>%1</nobr></h4>%2</td>" \ "<td valign=center><img src='%3'></td>" \ - "</qt></tr></table>").tqarg(status).tqarg(s).tqarg(tmpCoverPath)); + "</qt></tr></table>").arg(status).arg(s).arg(tmpCoverPath)); } else { - setTipText(TQString("<qt><center><h4><nobr>%1</nobr></h4>%2</center></qt>").tqarg(status).tqarg(s)); + setTipText(TQString("<qt><center><h4><nobr>%1</nobr></h4>%2</center></qt>").arg(status).arg(s)); } } @@ -256,16 +256,16 @@ void NoatunSystray::slotStopped() if(!napp->player()->current()) return; changeTray("player_stop"); - setTipText(TQString("<qt><nobr><h4>%1</h4></nobr></qt>").tqarg(i18n("Noatun - Stopped"))); + setTipText(TQString("<qt><nobr><h4>%1</h4></nobr></qt>").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); } diff --git a/noatun/modules/systray/systray.h b/noatun/modules/systray/systray.h index 11743a22..efab29be 100644 --- a/noatun/modules/systray/systray.h +++ b/noatun/modules/systray/systray.h @@ -69,11 +69,11 @@ private: private: KitSystemTray *mTray; TQTimer *mBlinkTimer; - TQPixmap *traytqStatus; + TQPixmap *trayStatus; TQPixmap *trayBase; PassivePopup *mPassivePopup; - bool showingTraytqStatus; + bool showingTrayStatus; TQString tipText; TQString tmpCoverPath; }; diff --git a/noatun/modules/systray/yhconfigwidget.ui b/noatun/modules/systray/yhconfigwidget.ui index f63d7319..02ea0a1c 100644 --- a/noatun/modules/systray/yhconfigwidget.ui +++ b/noatun/modules/systray/yhconfigwidget.ui @@ -169,7 +169,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>81</height> @@ -231,7 +231,7 @@ </property> <widget class="TQLayoutWidget"> <property name="name"> - <cstring>tqlayout1</cstring> + <cstring>layout1</cstring> </property> <hbox> <property name="name"> @@ -299,7 +299,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="tqsizeHint"> + <property name="sizeHint"> <size> <width>20</width> <height>21</height> |