From 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 00:15:53 +0000 Subject: TQt4 port piklab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/libgui/new_dialogs.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'src/libgui/new_dialogs.h') diff --git a/src/libgui/new_dialogs.h b/src/libgui/new_dialogs.h index 26e3cf7..b3d2846 100644 --- a/src/libgui/new_dialogs.h +++ b/src/libgui/new_dialogs.h @@ -10,11 +10,11 @@ #ifndef NEW_DIALOGS_H #define NEW_DIALOGS_H -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include "common/global/purl.h" @@ -25,15 +25,16 @@ class Project; class NewDialog : public Dialog { Q_OBJECT + TQ_OBJECT public: - NewDialog(const QString &caption, QWidget *parent); + NewDialog(const TQString &caption, TQWidget *tqparent); protected: - QGridLayout *_top; - QLabel *_fLabel; - QLineEdit *_filename, *_dir; + TQGridLayout *_top; + TQLabel *_fLabel; + TQLineEdit *_filename, *_dir; - virtual QString startDir() const = 0; + virtual TQString startDir() const = 0; private slots: void changed(); @@ -44,16 +45,17 @@ private slots: class NewFileDialog : public NewDialog { Q_OBJECT + TQ_OBJECT public: - NewFileDialog(Project *project, QWidget *parent); + NewFileDialog(Project *project, TQWidget *tqparent); PURL::Url url() const; bool addToProject() const { return (_project ? _add->isChecked() : false); } private: Project *_project; - QCheckBox *_add; + TQCheckBox *_add; - virtual QString startDir() const; + virtual TQString startDir() const; }; #endif -- cgit v1.2.1