summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/boardinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /atlantikdesigner/designer/boardinfo.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/boardinfo.cpp')
-rw-r--r--atlantikdesigner/designer/boardinfo.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/atlantikdesigner/designer/boardinfo.cpp b/atlantikdesigner/designer/boardinfo.cpp
index 9bc6dbb..56b561a 100644
--- a/atlantikdesigner/designer/boardinfo.cpp
+++ b/atlantikdesigner/designer/boardinfo.cpp
@@ -1,9 +1,9 @@
-#include <qstring.h>
-#include <qlayout.h>
-#include <qstringlist.h>
-#include <qframe.h>
-#include <qptrlist.h>
-#include <qlabel.h>
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqstringlist.h>
+#include <tqframe.h>
+#include <tqptrlist.h>
+#include <tqlabel.h>
#include <kcolorbutton.h>
#include <kdialogbase.h>
@@ -15,7 +15,7 @@
#include "boardinfo.h"
-BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, const char *_name, bool modal)
+BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, TQWidget *parent, const char *_name, bool modal)
: KDialogBase(KDialogBase::Tabbed, i18n("Gameboard Information"), (editable? Ok|Apply|Cancel : Close), (editable? Ok : Close), parent, _name, modal)
{
if (!info)
@@ -24,8 +24,8 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons
setWFlags(WDestructiveClose);
- QFrame *about = addPage(i18n("Information"));
- QVBoxLayout *aboutLayout = new QVBoxLayout(about, spacingHint());
+ TQFrame *about = addPage(i18n("Information"));
+ TQVBoxLayout *aboutLayout = new TQVBoxLayout(about, spacingHint());
if (editable)
{
@@ -34,22 +34,22 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons
}
else
{
- aboutLayout->addWidget(new QLabel(info->name, about));
+ aboutLayout->addWidget(new TQLabel(info->name, about));
name = 0;
}
- QHBoxLayout *versionLayout = new QHBoxLayout(aboutLayout, spacingHint());
- versionLayout->addWidget(new QLabel(i18n("Version:"), about));
+ TQHBoxLayout *versionLayout = new TQHBoxLayout(aboutLayout, spacingHint());
+ versionLayout->addWidget(new TQLabel(i18n("Version:"), about));
if (editable)
{
versionLayout->addWidget(version = new KLineEdit(about));
version->setText(info->version);
}
else
- versionLayout->addWidget(new QLabel(info->version, about));
+ versionLayout->addWidget(new TQLabel(info->version, about));
- QHBoxLayout *urlLayout = new QHBoxLayout(aboutLayout, spacingHint());
- urlLayout->addWidget(new QLabel(i18n("URL:"), about));
+ TQHBoxLayout *urlLayout = new TQHBoxLayout(aboutLayout, spacingHint());
+ urlLayout->addWidget(new TQLabel(i18n("URL:"), about));
if (editable)
urlLayout->addWidget(url = new KLineEdit(info->url, about));
else
@@ -57,7 +57,7 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons
aboutLayout->addStretch(3);
- aboutLayout->addWidget(new QLabel(i18n("Description:"), about));
+ aboutLayout->addWidget(new TQLabel(i18n("Description:"), about));
aboutLayout->addStretch();
aboutLayout->addWidget(description = new KLineEdit(about));
description->setText(info->description);
@@ -68,20 +68,20 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons
if (editable)
{
- QHBoxLayout *bgLayout = new QHBoxLayout(aboutLayout, spacingHint());
- bgLayout->addWidget(new QLabel(i18n("Background color:"), about));
+ TQHBoxLayout *bgLayout = new TQHBoxLayout(aboutLayout, spacingHint());
+ bgLayout->addWidget(new TQLabel(i18n("Background color:"), about));
bgColor = new KColorButton(info->bgColor, about);
bgLayout->addWidget(bgColor);
}
else
bgColor = 0;
- QFrame *authorsFrame = addPage(i18n("&Authors"));
- QVBoxLayout *authorsLayout = new QVBoxLayout(authorsFrame, spacingHint());
+ TQFrame *authorsFrame = addPage(i18n("&Authors"));
+ TQVBoxLayout *authorsLayout = new TQVBoxLayout(authorsFrame, spacingHint());
authorsLayout->addWidget(authors = new LotsaEdits(editable, info->authors, authorsFrame));
- QFrame *creditsFrame = addPage(i18n("&Thanks To"));
- QVBoxLayout *creditsLayout = new QVBoxLayout(creditsFrame, spacingHint());
+ TQFrame *creditsFrame = addPage(i18n("&Thanks To"));
+ TQVBoxLayout *creditsLayout = new TQVBoxLayout(creditsFrame, spacingHint());
creditsLayout->addWidget(credits = new LotsaEdits(editable, info->credits, creditsFrame));
}
@@ -110,44 +110,44 @@ void BoardInfoDlg::slotOk()
///////////////////////////////////
-LotsaEdits::LotsaEdits(bool editable, QStringList defaults, QWidget *parent, const char *name) : QWidget(parent, name)
+LotsaEdits::LotsaEdits(bool editable, TQStringList defaults, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
list.setAutoDelete(true);
this->editable = editable;
- layout = new QVBoxLayout(this, KDialogBase::spacingHint());
- QHBoxLayout *hlayout = new QHBoxLayout(layout, KDialogBase::spacingHint());
+ layout = new TQVBoxLayout(this, KDialogBase::spacingHint());
+ TQHBoxLayout *hlayout = new TQHBoxLayout(layout, KDialogBase::spacingHint());
if (editable)
{
KPushButton *more = new KPushButton(i18n("&Add Name"), this);
hlayout->addWidget(more);
- connect(more, SIGNAL(clicked()), this, SLOT(more()));
+ connect(more, TQT_SIGNAL(clicked()), this, TQT_SLOT(more()));
hlayout->addStretch();
KPushButton *less= new KPushButton(i18n("&Delete Name"), this);
hlayout->addWidget(less);
- connect(less, SIGNAL(clicked()), this, SLOT(less()));
+ connect(less, TQT_SIGNAL(clicked()), this, TQT_SLOT(less()));
}
layout->addStretch();
- for (QStringList::Iterator it = defaults.begin(); it != defaults.end(); ++it)
+ for (TQStringList::Iterator it = defaults.begin(); it != defaults.end(); ++it)
{
more();
if (editable)
static_cast<KLineEdit *>(list.last())->setText(*it);
else
- static_cast<QLabel *>(list.last())->setText(*it);
+ static_cast<TQLabel *>(list.last())->setText(*it);
}
}
void LotsaEdits::more()
{
- QWidget *edit;
+ TQWidget *edit;
if (editable)
edit = new KLineEdit(this);
else
- edit = new QLabel(this);
+ edit = new TQLabel(this);
layout->addWidget(edit);
list.append(edit);
edit->show();
@@ -157,7 +157,7 @@ void LotsaEdits::less()
{
list.removeLast();
/*
- QWidget *edit = 0;
+ TQWidget *edit = 0;
for (edit = list.first(); edit; edit = list.next())
{
if (edit->hasFocus())
@@ -169,16 +169,16 @@ void LotsaEdits::less()
*/
}
-QStringList LotsaEdits::save()
+TQStringList LotsaEdits::save()
{
- QStringList ret;
+ TQStringList ret;
- QWidget *edit = 0;
+ TQWidget *edit = 0;
for (edit = list.first(); edit; edit = list.next())
if (editable)
ret.append(static_cast<KLineEdit *>(edit)->text());
else
- ret.append(static_cast<QLabel *>(edit)->text());
+ ret.append(static_cast<TQLabel *>(edit)->text());
return ret;
}