summaryrefslogtreecommitdiffstats
path: root/src/knutrwvar.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
commit968af1d235ac30d737991b269156bee5dc99d318 (patch)
tree19b118fa5380087e10cb728be545760791ce0676 /src/knutrwvar.h
parentaea4882f3b37f17c5b56bc77667e683c52254c30 (diff)
downloadknutclient-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/knutrwvar.h')
-rwxr-xr-xsrc/knutrwvar.h17
1 files changed, 9 insertions, 8 deletions
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 <kcombobox.h>
-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;
};