From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libksirtet/lib/pline.h | 52 +++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'libksirtet/lib/pline.h') 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 -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #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 bds; - QLineEdit *qle; + TQLabel *lname, *labH, *labAI; + TQValueList 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 widgets; - QVBoxLayout vbl; + TQPtrList widgets; + TQVBoxLayout vbl; }; template 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); } -- cgit v1.2.1