From b09bffed6b43262948018dfb0f11890850ddf7c1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 20:34:22 +0000 Subject: TQt4 port kdeadmin This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpackage/kpackage.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'kpackage/kpackage.h') diff --git a/kpackage/kpackage.h b/kpackage/kpackage.h index 7fda9bb..dcb55fa 100644 --- a/kpackage/kpackage.h +++ b/kpackage/kpackage.h @@ -51,7 +51,7 @@ class Options; class pkgInterface; class managementWidget; class KAccel; -class QDropEevnt; +class TQDropEevnt; class KRecentFilesAction; class KAction; class kpRun; @@ -60,13 +60,14 @@ class kpRun; ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// -class KPACKAGE : public QWidget +class KPACKAGE : public TQWidget { Q_OBJECT + TQ_OBJECT ///////////// METHODS ------------------------------------------------------ public: - KPACKAGE(KConfig *_config, TQWidget *parent); + KPACKAGE(KConfig *_config, TQWidget *tqparent); // Constructor ~KPACKAGE(); @@ -76,13 +77,13 @@ public: OPEN_READONLY = 2, OPEN_INSERT = 4 }; - void setStatus(const TQString &s); + void settqStatus(const TQString &s); // this sets the status bar's string to s void setPercent(int x); // this set the status bar's progress to x - TQString getStatus(); + TQString gettqStatus(); // this gets the current status string on the status bar // void setMode(int newmode, pkgInterface *type, int refresh); @@ -158,7 +159,7 @@ public slots: void fileOpenUrl(); // menu item FIle->OpenUrl - void find(); + void tqfind(); // search for package void findf(); @@ -222,13 +223,14 @@ private: class KPKG : public KMainWindow { Q_OBJECT + TQ_OBJECT enum { Tback = 1, Tforward = 2, Tfileopen = 3, Tftout = 4, Tftin = 5, - Tfind = 6, + Ttqfind = 6, Tfindf = 7, Treload = 8 }; @@ -276,7 +278,7 @@ private: TQStrList recent_files; KAction *pack_open; - KAction *pack_find; + KAction *pack_tqfind; KAction *pack_findf; KAction *kpack_reload; KAction *pack_prev; -- cgit v1.2.1