summaryrefslogtreecommitdiffstats
path: root/kolf/editor.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 /kolf/editor.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 'kolf/editor.cpp')
-rw-r--r--kolf/editor.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kolf/editor.cpp b/kolf/editor.cpp
index 4cf6e61a..ae9cde32 100644
--- a/kolf/editor.cpp
+++ b/kolf/editor.cpp
@@ -1,39 +1,39 @@
#include <kdialog.h>
#include <klistbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwidget.h>
-#include <qframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
+#include <tqframe.h>
#include "editor.h"
#include "game.h"
-Editor::Editor(ObjectList *list, QWidget *parent, const char *name)
- : QWidget(parent, name)
+Editor::Editor(ObjectList *list, TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
this->list = list;
config = 0;
- hlayout = new QHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ hlayout = new TQHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- QVBoxLayout *vlayout = new QVBoxLayout(hlayout, KDialog::spacingHint());
- vlayout->addWidget(new QLabel(i18n("Add object:"), this));
+ TQVBoxLayout *vlayout = new TQVBoxLayout(hlayout, KDialog::spacingHint());
+ vlayout->addWidget(new TQLabel(i18n("Add object:"), this));
listbox = new KListBox(this, "Listbox");
vlayout->addWidget(listbox);
hlayout->setStretchFactor(vlayout, 2);
- QStringList items;
+ TQStringList items;
Object *obj = 0;
for (obj = list->first(); obj; obj = list->next())
items.append(obj->name());
listbox->insertStringList(items);
- connect(listbox, SIGNAL(executed(QListBoxItem *)), SLOT(listboxExecuted(QListBoxItem *)));
+ connect(listbox, TQT_SIGNAL(executed(TQListBoxItem *)), TQT_SLOT(listboxExecuted(TQListBoxItem *)));
}
-void Editor::listboxExecuted(QListBoxItem * /*item*/)
+void Editor::listboxExecuted(TQListBoxItem * /*item*/)
{
int curItem = listbox->currentItem();
if (curItem < 0)
@@ -51,10 +51,10 @@ void Editor::setItem(CanvasItem *item)
config->ctorDone();
hlayout->addWidget(config);
hlayout->setStretchFactor(config, 2);
- config->setFrameStyle(QFrame::Box | QFrame::Raised);
+ config->setFrameStyle(TQFrame::Box | TQFrame::Raised);
config->setLineWidth(1);
config->show();
- connect(config, SIGNAL(modified()), this, SIGNAL(changed()));
+ connect(config, TQT_SIGNAL(modified()), this, TQT_SIGNAL(changed()));
}
#include "editor.moc"