From ce0c60d7b9a0be4dd17c25bf627d807d9432d953 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 05:51:05 +0000 Subject: TQt4 port krename This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1238984 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krename/mydirplugin.h | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'krename/mydirplugin.h') diff --git a/krename/mydirplugin.h b/krename/mydirplugin.h index 1c27dc7..7dac484 100644 --- a/krename/mydirplugin.h +++ b/krename/mydirplugin.h @@ -23,28 +23,29 @@ #include "plugin.h" #include "helpdialog.h" -class QDir; -class QHBoxLayout; -class QGroupBox; -class QLineEdit; -class QPushButton; -class QSpinBox; -class QString; -class QVBoxLayout; -class QWidget; +class TQDir; +class TQHBoxLayout; +class TQGroupBox; +class TQLineEdit; +class TQPushButton; +class TQSpinBox; +class TQString; +class TQVBoxLayout; +class TQWidget; class MyDirPlugin : public Plugin { Q_OBJECT + TQ_OBJECT public: - const QString getName() const; - const QString getAccelName() const; + const TQString getName() const; + const TQString getAccelName() const; const int type() const; bool checkError(); - void drawInterface( QWidget* w, QVBoxLayout* l ); + void drawInterface( TQWidget* w, TQVBoxLayout* l ); void fillStructure(); - QString processFile( BatchRenamer*, int, QString token, int ); + TQString processFile( BatchRenamer*, int, TQString token, int ); void finished(); - const QPixmap getIcon() const; + const TQPixmap getIcon() const; private slots: void chooseDir(); @@ -53,20 +54,20 @@ class MyDirPlugin : public Plugin { int fpd; // files per dir int filecounter; int dircounter; - QString dir; - QString curdir; - QDir* d; + TQString dir; + TQString curdir; + TQDir* d; - QLineEdit* outputdir; - QPushButton* buttonDir; - QSpinBox* spinFiles; - QSpinBox* spinStart; + TQLineEdit* outputdir; + TQPushButton* buttonDir; + TQSpinBox* spinFiles; + TQSpinBox* spinStart; - QGroupBox* groupOutput; - QHBoxLayout* groupOutputLayout; + TQGroupBox* groupOutput; + TQHBoxLayout* groupOutputLayout; - QGroupBox* groupNumber; - QHBoxLayout* groupNumberLayout; + TQGroupBox* groupNumber; + TQHBoxLayout* groupNumberLayout; }; #endif -- cgit v1.2.3