diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
commit | 968af1d235ac30d737991b269156bee5dc99d318 (patch) | |
tree | 19b118fa5380087e10cb728be545760791ce0676 /src/knutnewupsdlg.h | |
parent | aea4882f3b37f17c5b56bc77667e683c52254c30 (diff) | |
download | knutclient-968af1d235ac30d737991b269156bee5dc99d318.tar.gz knutclient-968af1d235ac30d737991b269156bee5dc99d318.zip |
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
Diffstat (limited to 'src/knutnewupsdlg.h')
-rw-r--r-- | src/knutnewupsdlg.h | 27 |
1 files changed, 14 insertions, 13 deletions
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 <kpushbutton.h> #include <kactionselector.h> -#include <qlistbox.h> +#include <tqlistbox.h> -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; |