diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/kpackage.h | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/kpackage.h')
-rw-r--r-- | kpackage/kpackage.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kpackage/kpackage.h b/kpackage/kpackage.h index 07d22da..8e13643 100644 --- a/kpackage/kpackage.h +++ b/kpackage/kpackage.h @@ -66,7 +66,7 @@ class KPACKAGE : public QWidget ///////////// METHODS ------------------------------------------------------ public: - KPACKAGE(KConfig *_config, QWidget *parent); + KPACKAGE(KConfig *_config, TQWidget *parent); // Constructor ~KPACKAGE(); @@ -76,13 +76,13 @@ public: OPEN_READONLY = 2, OPEN_INSERT = 4 }; - void setStatus(const QString &s); + void setStatus(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 - QString getStatus(); + TQString getStatus(); // this gets the current status string on the status bar // void setMode(int newmode, pkgInterface *type, int refresh); @@ -90,33 +90,33 @@ public: void setup(); - pkgInterface *pkType(const QString &fname); + pkgInterface *pkType(const TQString &fname); // find type of package int typeIndex(pkgInterface *); // convert interface pointer to index - void openNetFiles(const QStringList &urls, bool install=TRUE); + void openNetFiles(const TQStringList &urls, bool install=TRUE); void openNetFile(const KURL & url, bool install=TRUE); // open a file given a URL - QString fetchNetFile(const KURL & url); + TQString fetchNetFile(const KURL & url); // fetch a file given a URL - static QString getFileName(const KURL & url, QString &cacheName); + static TQString getFileName(const KURL & url, TQString &cacheName); // return file name, if not local file cachename is name for cache entry static bool isFileLocal( const KURL & url ); // true if URL refers to local or cached file protected: - void resizeEvent(QResizeEvent *re); + void resizeEvent(TQResizeEvent *re); // This is called when the widget is resized - void dropEvent(QDropEvent *); + void dropEvent(TQDropEvent *); // This is called when a URL has been dropped in the drop zone - void dragEnterEvent(QDragEnterEvent* e); + void dragEnterEvent(TQDragEnterEvent* e); private: @@ -133,7 +133,7 @@ private: // This arranges the widgets in the window (should be called after a // resize event) - KFileDialog* getFileDialog(const QString &captiontext); + KFileDialog* getFileDialog(const TQString &captiontext); ///////////// SLOTS -------------------------------------------------------- public slots: @@ -199,13 +199,13 @@ private: // Menu item identifiers - QFrame *statusbar; + TQFrame *statusbar; // the status bar KProgress *processProgress; // Progress bar for showing progress - QLabel *status; + TQLabel *status; // The actual status KFileDialog *file_dialog; @@ -238,7 +238,7 @@ public: KPKG(KConfig *_config); // Constructor - void add_recent_file(const QString &newfile); + void add_recent_file(const TQString &newfile); // keep list of files accessed void writeSettings(); @@ -273,7 +273,7 @@ private: void setupMenu(); // This sets up the menubar - QStrList recent_files; + TQStrList recent_files; KAction *pack_open; KAction *pack_find; @@ -326,11 +326,11 @@ extern kpPty *kpty; extern kpRun *kprun; extern kpRun *kpstart; -extern QString hostName; +extern TQString hostName; extern pkgInterface *kpinterface[]; -void KpMsg(const QString &lab, const QString &msg, bool stop); -void KpMsgE(const QString &msg, bool stop = FALSE); +void KpMsg(const TQString &lab, const TQString &msg, bool stop); +void KpMsgE(const TQString &msg, bool stop = FALSE); #endif |