diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/project_editor.cpp | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip |
TQt4 port piklab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/project_editor.cpp')
-rw-r--r-- | src/libgui/project_editor.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libgui/project_editor.cpp b/src/libgui/project_editor.cpp index 4b86429..bfb2d8c 100644 --- a/src/libgui/project_editor.cpp +++ b/src/libgui/project_editor.cpp @@ -9,41 +9,41 @@ ***************************************************************************/ #include "project_editor.h" -#include <qlabel.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klocale.h> #include "project.h" #include "tools/list/compile_config.h" #include "device_gui.h" -ProjectEditor::ProjectEditor(Project &project, QWidget *parent) - : Dialog(parent, "project_options", true, i18n("Project Options"), Ok|Cancel, Ok, false), +ProjectEditor::ProjectEditor(Project &project, TQWidget *tqparent) + : Dialog(tqparent, "project_options", true, i18n("Project Options"), Ok|Cancel, Ok, false), _project(project) { - QVBoxLayout *top = new QVBoxLayout(mainWidget(), 0, 10); + TQVBoxLayout *top = new TQVBoxLayout(mainWidget(), 0, 10); TabWidget *tabWidget = new TabWidget(mainWidget()); top->addWidget(tabWidget); // global - QWidget *tab = new QWidget(tabWidget); + TQWidget *tab = new TQWidget(tabWidget); tabWidget->addTab(tab, i18n("General")); - QGridLayout *grid = new QGridLayout(tab, 0, 0, 10, 10); - QLabel *label = new QLabel(i18n("Name:"), tab); + TQGridLayout *grid = new TQGridLayout(tab, 0, 0, 10, 10); + TQLabel *label = new TQLabel(i18n("Name:"), tab); grid->addWidget(label, 0, 0); - label = new QLabel(project.name(), tab); + label = new TQLabel(project.name(), tab); grid->addWidget(label, 0, 1); - label = new QLabel(i18n("Description:"), tab); + label = new TQLabel(i18n("Description:"), tab); grid->addWidget(label, 1, 0); - _description = new QTextEdit(tab); + _description = new TQTextEdit(tab); _description->setText(_project.description()); grid->addMultiCellWidget(_description, 1,1, 1,2); - label = new QLabel(i18n("Version:"), tab); + label = new TQLabel(i18n("Version:"), tab); grid->addWidget(label, 2, 0); - _version = new QLineEdit(tab); + _version = new TQLineEdit(tab); _version->setText(_project.version()); grid->addWidget(_version, 2, 1); - label = new QLabel(i18n("Device:"), tab); + label = new TQLabel(i18n("Device:"), tab); grid->addWidget(label, 3, 0); _device = new DeviceChooser::Button(false, tab); _device->setDevice(Compile::Config::device(&_project)); @@ -52,9 +52,9 @@ ProjectEditor::ProjectEditor(Project &project, QWidget *parent) grid->setColStretch(2, 1); // toochain - tab = new QWidget(tabWidget); + tab = new TQWidget(tabWidget); tabWidget->addTab(tab, i18n("Toochain")); - grid = new QGridLayout(tab, 0, 0, 10, 10); + grid = new TQGridLayout(tab, 0, 0, 10, 10); _tools = new ToolsConfigWidget(&project, tab); _tools->loadConfig(); grid->addMultiCellWidget(_tools, 0,0, 0,2); |