From 968af1d235ac30d737991b269156bee5dc99d318 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 19:37:06 +0000 Subject: TQt4 port knutclient This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1238881 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/knutnewupsdlg.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/knutnewupsdlg.h') diff --git a/src/knutnewupsdlg.h b/src/knutnewupsdlg.h index 447c089..2322f1b 100644 --- a/src/knutnewupsdlg.h +++ b/src/knutnewupsdlg.h @@ -27,13 +27,13 @@ #include #include -#include +#include -class QLabel; -class QGroupBox; -class QButtonGroup; -class QCheckBox; +class TQLabel; +class TQGroupBox; +class TQButtonGroup; +class TQCheckBox; /** * This class is dialog for makeing or correting informations about UPS. @@ -48,6 +48,7 @@ class QCheckBox; class KNutNewUpsDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: @@ -66,7 +67,7 @@ public: * * @since 0.7 **/ - KNutNewUpsDlg (KNutUpsData* const upsData, KNutVarData* const analogData, const bool add = TRUE, QWidget* parent = 0, const char* name = 0, const bool modal = TRUE); + KNutNewUpsDlg (KNutUpsData* const upsData, KNutVarData* const analogData, const bool add = TRUE, TQWidget* tqparent = 0, const char* name = 0, const bool modal = TRUE); /** * @since 0.3 @@ -119,19 +120,19 @@ private: * * @version 0.1 */ - class KNutUpsBoxItem : public QListBoxText + class KNutUpsBoxItem : public TQListBoxText { private: int m_ordVarCode; public: - KNutUpsBoxItem ( QListBox* listbox, const QString & text=QString::null, const int ordVarCode = 0 ) : - QListBoxText (listbox, text), m_ordVarCode (ordVarCode) {}; - KNutUpsBoxItem ( QListBox* listbox, const QString & text, QListBoxItem *after, const int ordVarCode = 0 ) : - QListBoxText (listbox, text, after), m_ordVarCode (ordVarCode) {}; + KNutUpsBoxItem ( TQListBox* listbox, const TQString & text=TQString(), const int ordVarCode = 0 ) : + TQListBoxText (listbox, text), m_ordVarCode (ordVarCode) {}; + KNutUpsBoxItem ( TQListBox* listbox, const TQString & text, TQListBoxItem *after, const int ordVarCode = 0 ) : + TQListBoxText (listbox, text, after), m_ordVarCode (ordVarCode) {}; int getVarCode (void) const {return m_ordVarCode;}; void putGetCode (const int ordVarCode) {m_ordVarCode = ordVarCode;}; -// QString text () const {return QListBoxItem::text();}; +// TQString text () const {return TQListBoxItem::text();}; }; @@ -151,7 +152,7 @@ private: KLineEdit* m_lineEdit6; KLineEdit* m_lineEdit7; - QCheckBox* m_savePassword; + TQCheckBox* m_savePassword; KActionSelector* m_upsValueSelector; -- cgit v1.2.1