summaryrefslogtreecommitdiffstats
path: root/kdialogd3/kdialogd.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 19:29:16 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 19:29:16 +0000
commit7a92d5c79f247b98a50500822fdc4c391a1b1f41 (patch)
tree7e2eb6f7e2bd93b1b92acfc8b14f2dab5d2adcc9 /kdialogd3/kdialogd.h
parent7b227bd6ed94b3972dc84667dd5c726fa488c6e8 (diff)
downloadkgtk-qt3-7a92d5c79f247b98a50500822fdc4c391a1b1f41.tar.gz
kgtk-qt3-7a92d5c79f247b98a50500822fdc4c391a1b1f41.zip
TQt4 port kgtk-qt3
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kgtk-qt3@1230933 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdialogd3/kdialogd.h')
-rw-r--r--kdialogd3/kdialogd.h44
1 files changed, 24 insertions, 20 deletions
diff --git a/kdialogd3/kdialogd.h b/kdialogd3/kdialogd.h
index 7e50580..f317443 100644
--- a/kdialogd3/kdialogd.h
+++ b/kdialogd3/kdialogd.h
@@ -9,7 +9,7 @@
#include "config.h"
#ifdef KDIALOGD_APP
-class QTimer;
+class TQTimer;
#else
#include <kdedmodule.h>
#endif
@@ -19,10 +19,11 @@ class KConfig;
class KDialogDFileDialog : public KFileDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDialogDFileDialog(QString &an, Operation op, const QString& startDir, const QString& filter,
+ KDialogDFileDialog(TQString &an, Operation op, const TQString& startDir, const TQString& filter,
bool confirmOw);
virtual ~KDialogDFileDialog();
@@ -33,23 +34,24 @@ class KDialogDFileDialog : public KFileDialog
signals:
- void ok(const QStringList &items);
+ void ok(const TQStringList &items);
private:
bool itsConfirmOw;
- QString &itsAppName;
+ TQString &itsAppName;
};
class KDialogDDirSelectDialog : public KDirSelectDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDialogDDirSelectDialog(QString &an, const QString &startDir = QString::null,
+ KDialogDDirSelectDialog(TQString &an, const TQString &startDir = TQString(),
bool localOnly = false,
- QWidget *parent = 0L,
+ TQWidget *tqparent = 0L,
const char *name = 0, bool modal = false);
virtual ~KDialogDDirSelectDialog();
@@ -59,27 +61,28 @@ class KDialogDDirSelectDialog : public KDirSelectDialog
signals:
- void ok(const QStringList &items);
+ void ok(const TQStringList &items);
private:
- QString &itsAppName;
+ TQString &itsAppName;
};
-class KDialogDClient : public QObject
+class KDialogDClient : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDialogDClient(int sock, const QString &an, QObject *parent);
+ KDialogDClient(int sock, const TQString &an, TQObject *tqparent);
virtual ~KDialogDClient();
public slots:
void read();
void close();
- void ok(const QStringList &items);
+ void ok(const TQStringList &items);
void finished();
signals:
@@ -89,28 +92,29 @@ class KDialogDClient : public QObject
private:
void cancel();
- bool readData(QCString &buffer, int size);
+ bool readData(TQCString &buffer, int size);
bool readData(char *buffer, int size) { return readBlock(itsFd, buffer, size); }
bool writeData(const char *buffer, int size) { return writeBlock(itsFd, buffer, size); }
- bool readString(QString &str);
- bool writeString(const QString &str);
- void initDialog(const QString &caption, KDialogBase *d, unsigned int xid);
+ bool readString(TQString &str);
+ bool writeString(const TQString &str);
+ void initDialog(const TQString &caption, KDialogBase *d, unsigned int xid);
private:
int itsFd;
KDialogBase *itsDlg;
bool itsAccepted;
- QString itsAppName;
+ TQString itsAppName;
};
-class KDialogD : public QObject
+class KDialogD : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDialogD(QObject *parent=0L);
+ KDialogD(TQObject *tqparent=0L);
virtual ~KDialogD();
public slots:
@@ -124,7 +128,7 @@ class KDialogD : public QObject
private:
#ifdef KDIALOGD_APP
- QTimer *itsTimer;
+ TQTimer *itsTimer;
int itsTimeoutVal;
#endif
int itsFd,
@@ -138,7 +142,7 @@ class KDialogDKDED : public KDEDModule
{
public:
- KDialogDKDED(const QCString &obj);
+ KDialogDKDED(const TQCString &obj);
};
#endif