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/knutrwvar.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/knutrwvar.h') diff --git a/src/knutrwvar.h b/src/knutrwvar.h index 4cef64c..1fb0bad 100755 --- a/src/knutrwvar.h +++ b/src/knutrwvar.h @@ -26,8 +26,8 @@ #include -class QString; -class QGridLayout; +class TQString; +class TQGridLayout; /** * This class is graphics interface for changes of RW variables. @@ -39,6 +39,7 @@ class QGridLayout; */ class KNutRWVar : public KDialogBase { Q_OBJECT + TQ_OBJECT public: /** * Constructor - makes window for change of RW variable. @@ -55,7 +56,7 @@ class KNutRWVar : public KDialogBase { * @param initUpsNet Je odkaz na instanci tridy KNutNet. * @since 0.2 **/ - KNutRWVar(QString* userName, QString* userPassword, const QString uName, const QString password, KNutNet* const initUpsNet, QWidget* parent = 0, const char* name = 0, const bool modal = TRUE); + KNutRWVar(TQString* userName, TQString* userPassword, const TQString uName, const TQString password, KNutNet* const initUpsNet, TQWidget* tqparent = 0, const char* name = 0, const bool modal = TRUE); /** * Destructor @@ -107,7 +108,7 @@ class KNutRWVar : public KDialogBase { * Najde pozadovanou polozku v boxu. * Ve verzi qt > 3.0.0 neni potreba. */ -int findItem(const KComboBox *myBox ,const QString text); +int findItem(const KComboBox *myBox ,const TQString text); signals: /** @@ -117,7 +118,7 @@ int findItem(const KComboBox *myBox ,const QString text); * * @since 0.1 **/ - void signalChangeRWVars (QString varName); + void signalChangeRWVars (TQString varName); private: @@ -127,12 +128,12 @@ int findItem(const KComboBox *myBox ,const QString text); KComboBox *m_rWVarBox; KComboBox *m_valueVarBox; KLineEdit *m_valueVarLine; - QGridLayout *m_passLayout; + TQGridLayout *m_passLayout; bool m_upsValueType; bool m_upsConnectOk; - QString* m_oldUserName; - QString* m_oldUserPassword; + TQString* m_oldUserName; + TQString* m_oldUserPassword; }; -- cgit v1.2.3