summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/pline.cpp
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.cpp
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.cpp')
-rw-r--r--libksirtet/lib/pline.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/libksirtet/lib/pline.cpp b/libksirtet/lib/pline.cpp
index 41faf6ac..86fde398 100644
--- a/libksirtet/lib/pline.cpp
+++ b/libksirtet/lib/pline.cpp
@@ -1,36 +1,36 @@
#include "pline.h"
#include "pline.moc"
-#include <qfont.h>
-#include <qpushbutton.h>
+#include <tqfont.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include "defines.h"
#define THIN_BORDER 4
MeetingLine::MeetingLine(bool isOwner, bool serverIsReader, bool serverLine,
- QWidget *parent, const char *name)
-: QFrame(parent, name)
+ TQWidget *parent, const char *name)
+: TQFrame(parent, name)
{
setFrameStyle(Panel | (serverLine ? Raised : Plain));
// Top layout
- hbl = new QHBoxLayout(this, THIN_BORDER + frameWidth());
+ hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth());
/* TriCheckBox */
tcb = new MeetingCheckBox(MeetingCheckBox::Ready, isOwner, serverIsReader,
this);
if ( !XOR(isOwner, serverIsReader) ) tcb->setEnabled(FALSE);
- else connect(tcb, SIGNAL(changed(int)), SLOT(_typeChanged(int)));
+ else connect(tcb, TQT_SIGNAL(changed(int)), TQT_SLOT(_typeChanged(int)));
hbl->addWidget(tcb);
/* Name */
- lname = new QLabel(" ", this);
+ lname = new TQLabel(" ", this);
lname->setAlignment(AlignCenter);
- lname->setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ lname->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
lname->setLineWidth(2);
lname->setMidLineWidth(3);
- QFont f = lname->font();
+ TQFont f = lname->font();
f.setBold(TRUE);
lname->setFont(f);
lname->setFixedSize(lname->fontMetrics().maxWidth()*NAME_MAX_LENGTH,
@@ -39,21 +39,21 @@ MeetingLine::MeetingLine(bool isOwner, bool serverIsReader, bool serverLine,
hbl->addStretch(1);
// Nb humans
- labH = new QLabel(this);
+ labH = new TQLabel(this);
hbl->addWidget(labH);
// Nb AIs
- labAI = new QLabel(this);
+ labAI = new TQLabel(this);
hbl->addWidget(labAI);
// talker
- qle = new QLineEdit(this);
+ qle = new TQLineEdit(this);
qle->setMaxLength(TALKER_MAX_LENGTH);
- qle->setFont( QFont("fixed", 12, QFont::Bold) );
+ qle->setFont( TQFont("fixed", 12, TQFont::Bold) );
qle->setFixedSize(qle->fontMetrics().maxWidth()*TALKER_MAX_LENGTH,
qle->sizeHint().height());
- connect(qle, SIGNAL(textChanged(const QString &)),
- SLOT(_textChanged(const QString &)));
+ connect(qle, TQT_SIGNAL(textChanged(const TQString &)),
+ TQT_SLOT(_textChanged(const TQString &)));
qle->setEnabled(isOwner);
hbl->addWidget(qle);
}
@@ -81,33 +81,33 @@ void MeetingLine::data(ExtData &ed) const
}
/*****************************************************************************/
-PlayerLine::PlayerLine(PlayerComboBox::Type type, const QString &txt,
+PlayerLine::PlayerLine(PlayerComboBox::Type type, const TQString &txt,
bool humanSetting, bool AISetting,
bool canBeEmpty, bool acceptAI,
- QWidget *parent, const char *name)
-: QFrame(parent, name), hs(humanSetting), as(AISetting)
+ TQWidget *parent, const char *name)
+: TQFrame(parent, name), hs(humanSetting), as(AISetting)
{
setFrameStyle(Panel | Raised);
// Top layout
- QHBoxLayout *hbl;
- hbl = new QHBoxLayout(this, THIN_BORDER + frameWidth());
+ TQHBoxLayout *hbl;
+ hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth());
/* CheckBox */
pcb = new PlayerComboBox(type, canBeEmpty, acceptAI, this);
- connect(pcb, SIGNAL(changed(int)), SLOT(typeChangedSlot(int)));
+ connect(pcb, TQT_SIGNAL(changed(int)), TQT_SLOT(typeChangedSlot(int)));
hbl->addWidget(pcb);
/* Name */
- edit = new QLineEdit(txt, this);
+ edit = new TQLineEdit(txt, this);
edit->setMaxLength(NAME_MAX_LENGTH);
edit->setFixedSize(edit->fontMetrics().maxWidth()*(NAME_MAX_LENGTH+2),
edit->sizeHint().height());
hbl->addWidget(edit);
/* settings button */
- setting = new QPushButton(i18n("Settings"), this);
- connect(setting, SIGNAL(clicked()), SLOT(setSlot()));
+ setting = new TQPushButton(i18n("Settings"), this);
+ connect(setting, TQT_SIGNAL(clicked()), TQT_SLOT(setSlot()));
hbl->addWidget(setting);
typeChangedSlot(type);
@@ -128,13 +128,13 @@ void PlayerLine::setSlot()
}
/*****************************************************************************/
-GWidgetList::GWidgetList(uint interval, QWidget *parent, const char * name)
- : QWidget(parent, name), vbl(this, interval)
+GWidgetList::GWidgetList(uint interval, TQWidget *parent, const char * name)
+ : TQWidget(parent, name), vbl(this, interval)
{
widgets.setAutoDelete(TRUE);
}
-void GWidgetList::append(QWidget *wi)
+void GWidgetList::append(TQWidget *wi)
{
vbl.addWidget(wi);
wi->show();