diff options
Diffstat (limited to 'kolf/editor.cpp')
-rw-r--r-- | kolf/editor.cpp | 28 |
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" |