From 940c092f32d40263ad6b24f948eaf4c48b01e99a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:13:25 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- noatun/modules/systray/kitsystemtray.cpp | 4 ++-- noatun/modules/systray/kitsystemtray.h | 8 ++++---- noatun/modules/systray/systray.cpp | 2 +- noatun/modules/systray/systray.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'noatun/modules/systray') diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp index a0b545ab..63a467b6 100644 --- a/noatun/modules/systray/kitsystemtray.cpp +++ b/noatun/modules/systray/kitsystemtray.cpp @@ -44,11 +44,11 @@ #include -KitSystemTray::KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name) +KitSystemTray::KitSystemTray(const TQString &contextMenu, TDEMainWindow *parent, const char *name) : KSystemTray(parent, name) { setAlignment(AlignHCenter | AlignVCenter); - menu = (KPopupMenu *)parent->guiFactory()->container(contextMenu, parent); + menu = (TDEPopupMenu *)parent->guiFactory()->container(contextMenu, parent); menu->insertTitle(SmallIcon("noatun"), TQString(), 0, 0); setAcceptDrops(true); } diff --git a/noatun/modules/systray/kitsystemtray.h b/noatun/modules/systray/kitsystemtray.h index d012853e..13a8b518 100644 --- a/noatun/modules/systray/kitsystemtray.h +++ b/noatun/modules/systray/kitsystemtray.h @@ -30,8 +30,8 @@ #include -class KPopupMenu; -class KMainWindow; +class TDEPopupMenu; +class TDEMainWindow; class TQPixmap; class KitSystemTray : public KSystemTray @@ -40,7 +40,7 @@ Q_OBJECT public: - KitSystemTray(const TQString &contextMenu, KMainWindow *parent, const char *name = 0); + KitSystemTray(const TQString &contextMenu, TDEMainWindow *parent, const char *name = 0); void changeTitle(const TQPixmap &, const TQString &); protected: virtual void showEvent(TQShowEvent *); @@ -49,7 +49,7 @@ protected: virtual void dropEvent(TQDropEvent *); virtual void wheelEvent(TQWheelEvent *e); - KPopupMenu *menu; + TDEPopupMenu *menu; }; #endif diff --git a/noatun/modules/systray/systray.cpp b/noatun/modules/systray/systray.cpp index 27976429..0cfde28e 100644 --- a/noatun/modules/systray/systray.cpp +++ b/noatun/modules/systray/systray.cpp @@ -90,7 +90,7 @@ protected: //NoatunSystray *NoatunSystray::self = 0; -NoatunSystray::NoatunSystray() : KMainWindow(0, "NoatunSystray"), Plugin(), +NoatunSystray::NoatunSystray() : TDEMainWindow(0, "NoatunSystray"), Plugin(), mTray(0), trayStatus(0), trayBase(0), mPassivePopup(0L) { //self = this; diff --git a/noatun/modules/systray/systray.h b/noatun/modules/systray/systray.h index 270bef01..b1dd7aad 100644 --- a/noatun/modules/systray/systray.h +++ b/noatun/modules/systray/systray.h @@ -38,7 +38,7 @@ class KitSystemTray; class TQTimer; class PassivePopup; -class NoatunSystray : public KMainWindow, public Plugin +class NoatunSystray : public TDEMainWindow, public Plugin { Q_OBJECT -- cgit v1.2.1