diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 05:51:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 05:51:05 +0000 |
commit | ce0c60d7b9a0be4dd17c25bf627d807d9432d953 (patch) | |
tree | f04fe60da1d1207732afec16a35d8d32323f20c4 /krename/ProgressDialog.h | |
parent | f8b5e2400a066271276cf2712aaf9788f5ac5ac1 (diff) | |
download | krename-ce0c60d7b9a0be4dd17c25bf627d807d9432d953.tar.gz krename-ce0c60d7b9a0be4dd17c25bf627d807d9432d953.zip |
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
Diffstat (limited to 'krename/ProgressDialog.h')
-rw-r--r-- | krename/ProgressDialog.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/krename/ProgressDialog.h b/krename/ProgressDialog.h index 0bbab51..2b467b0 100644 --- a/krename/ProgressDialog.h +++ b/krename/ProgressDialog.h @@ -18,7 +18,7 @@ #ifndef PROGRESSDIALOG_H #define PROGRESSDIALOG_H -#include <qwidget.h> +#include <tqwidget.h> #include <kurl.h> typedef struct RenamedList @@ -34,18 +34,19 @@ class KRenameImpl; class KListView; class KPopupMenu; class KPushButton; -class QProgressBar; -class QStringList; -class QStrList; -class QString; -class QTimer; -class QHBoxLayout; -class QVBoxLayout; -class ProgressDialog : public QWidget +class TQProgressBar; +class TQStringList; +class TQStrList; +class TQString; +class TQTimer; +class TQHBoxLayout; +class TQVBoxLayout; +class ProgressDialog : public TQWidget { Q_OBJECT + TQ_OBJECT public: - ProgressDialog( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + ProgressDialog( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~ProgressDialog(); void setProgressTotalSteps( int t ); @@ -57,9 +58,9 @@ class ProgressDialog : public QWidget inline void setCreatedDirectories( const KURL::List & list ); void done( int errors, int successfull, bool allowundo ); - void print( QString text, QString pixmap = 0 ); - void error( QString text ); - void warning( QString text ); + void print( TQString text, TQString pixmap = 0 ); + void error( TQString text ); + void warning( TQString text ); public slots: void show(); @@ -76,8 +77,8 @@ class ProgressDialog : public QWidget void slotTimer(); private: - QString count(); - const QString simplify( const QString & text ); + TQString count(); + const TQString simplify( const TQString & text ); protected: RenamedList* renamedFiles; @@ -88,7 +89,7 @@ class ProgressDialog : public QWidget bool m_canceled; KURL::List m_created; - QTimer* m_timer; + TQTimer* m_timer; KListView* display; KPushButton* buttonClose; @@ -98,10 +99,10 @@ class ProgressDialog : public QWidget KPushButton* buttonCancel; KPopupMenu* mnuButton; - QProgressBar* bar; + TQProgressBar* bar; - QVBoxLayout* ProgressDialogLayout; - QHBoxLayout* Layout1; + TQVBoxLayout* ProgressDialogLayout; + TQHBoxLayout* Layout1; }; |