summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/pline.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /libksirtet/lib/pline.h
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/lib/pline.h')
-rw-r--r--libksirtet/lib/pline.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/libksirtet/lib/pline.h b/libksirtet/lib/pline.h
index 2defd10a..7d6e97e7 100644
--- a/libksirtet/lib/pline.h
+++ b/libksirtet/lib/pline.h
@@ -1,12 +1,12 @@
#ifndef PLINE_H
#define PLINE_H
-#include <qframe.h>
-#include <qscrollbar.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qptrlist.h>
-#include <qlayout.h>
+#include <tqframe.h>
+#include <tqscrollbar.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqptrlist.h>
+#include <tqlayout.h>
#include "types.h"
@@ -19,33 +19,33 @@ class MeetingLine : public QFrame
public:
MeetingLine(bool isOwner, bool readerIsServer, bool serverLine,
- QWidget *parent, const char *name = 0);
+ TQWidget *parent, const char *name = 0);
MeetingCheckBox::Type type() const { return tcb->type(); }
void setType(MeetingCheckBox::Type type) { tcb->setType(type); }
- void setText(const QString &text) { qle->setText(text); }
+ void setText(const TQString &text) { qle->setText(text); }
void setData(const ExtData &ed);
void data(ExtData &ed) const;
- QString text() const { return qle->text(); }
+ TQString text() const { return qle->text(); }
signals:
void typeChanged(MeetingCheckBox::Type);
- void textChanged(const QString &);
+ void textChanged(const TQString &);
private slots:
void _typeChanged(int t)
{ emit typeChanged((MeetingCheckBox::Type)t); }
- void _textChanged(const QString &text) { emit textChanged(text); }
+ void _textChanged(const TQString &text) { emit textChanged(text); }
protected:
- QHBoxLayout *hbl;
+ TQHBoxLayout *hbl;
private:
MeetingCheckBox *tcb;
- QLabel *lname, *labH, *labAI;
- QValueList<BoardData> bds;
- QLineEdit *qle;
+ TQLabel *lname, *labH, *labAI;
+ TQValueList<BoardData> bds;
+ TQLineEdit *qle;
};
class PlayerLine : public QFrame
@@ -53,13 +53,13 @@ class PlayerLine : public QFrame
Q_OBJECT
public:
- PlayerLine(PlayerComboBox::Type type, const QString &txt,
+ PlayerLine(PlayerComboBox::Type type, const TQString &txt,
bool humanSetting, bool AISetting,
bool canBeEmpty, bool acceptAI,
- QWidget *parent = 0, const char *name = 0);
+ TQWidget *parent = 0, const char *name = 0);
PlayerComboBox::Type type() const { return pcb->type(); }
- QString name() const { return edit->text(); }
+ TQString name() const { return edit->text(); }
signals:
void setHuman();
@@ -72,8 +72,8 @@ class PlayerLine : public QFrame
private:
PlayerComboBox *pcb;
- QLineEdit *edit;
- QPushButton *setting;
+ TQLineEdit *edit;
+ TQPushButton *setting;
bool hs, as;
};
@@ -83,26 +83,26 @@ class GWidgetList : public QWidget
Q_OBJECT
public:
- GWidgetList(uint interval, QWidget *parent = 0, const char * name = 0);
+ GWidgetList(uint interval, TQWidget *parent = 0, const char * name = 0);
void remove(uint i);
uint size() const { return widgets.count(); }
protected:
/** The widget must be created with this widget as parent. */
- void append(QWidget *);
- QWidget *widget(uint i) { return widgets.at(i); }
+ void append(TQWidget *);
+ TQWidget *widget(uint i) { return widgets.at(i); }
private:
- QPtrList<QWidget> widgets;
- QVBoxLayout vbl;
+ TQPtrList<TQWidget> widgets;
+ TQVBoxLayout vbl;
};
template <class Type>
class WidgetList : public GWidgetList
{
public:
- WidgetList(uint interval, QWidget *parent=0, const char *name=0)
+ WidgetList(uint interval, TQWidget *parent=0, const char *name=0)
: GWidgetList(interval, parent, name) {}
void append(Type *w) { GWidgetList::append(w); }