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/new_dialogs.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/new_dialogs.cpp')
-rw-r--r-- | src/libgui/new_dialogs.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/libgui/new_dialogs.cpp b/src/libgui/new_dialogs.cpp index d26c15c..f5fbc4a 100644 --- a/src/libgui/new_dialogs.cpp +++ b/src/libgui/new_dialogs.cpp @@ -17,27 +17,27 @@ #include "project.h" //---------------------------------------------------------------------------- -NewDialog::NewDialog(const QString &caption, QWidget *parent) - : Dialog(parent, "new_dialog", true, caption, Ok|Cancel, Ok, false) +NewDialog::NewDialog(const TQString &caption, TQWidget *tqparent) + : Dialog(tqparent, "new_dialog", true, caption, Ok|Cancel, Ok, false) { - _top = new QGridLayout(mainWidget(), 0, 0, 10, 10); + _top = new TQGridLayout(mainWidget(), 0, 0, 10, 10); _top->setColStretch(2, 1); - _fLabel = new QLabel(mainWidget()); + _fLabel = new TQLabel(mainWidget()); _top->addWidget(_fLabel, 0, 0); - _filename = new QLineEdit(mainWidget()); - connect(_filename, SIGNAL(textChanged(const QString &)), SLOT(changed())); + _filename = new TQLineEdit(mainWidget()); + connect(_filename, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(changed())); _top->addMultiCellWidget(_filename, 0,0, 1,3); - QLabel *label= new QLabel(i18n("Location:"), mainWidget()); + TQLabel *label= new TQLabel(i18n("Location:"), mainWidget()); _top->addWidget(label, 1, 0); - _dir = new QLineEdit(mainWidget()); - connect(_dir, SIGNAL(textChanged(const QString &)), SLOT(changed())); + _dir = new TQLineEdit(mainWidget()); + connect(_dir, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(changed())); _top->addMultiCellWidget(_dir, 1,1, 1,2); KIconLoader loader; - QIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar); - KPushButton *button = new KPushButton(iconset, QString::null, mainWidget()); - connect(button, SIGNAL(clicked()), SLOT(browse())); + TQIconSet iconset = loader.loadIcon("fileopen", KIcon::Toolbar); + KPushButton *button = new KPushButton(iconset, TQString(), mainWidget()); + connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(browse())); _top->addWidget(button, 1, 3); _filename->setFocus(); @@ -51,19 +51,19 @@ void NewDialog::changed() void NewDialog::browse() { - PURL::Directory dir = PURL::getExistingDirectory(startDir(), this, QString::null); + PURL::Directory dir = PURL::getExistingDirectory(startDir(), this, TQString()); if ( dir.isEmpty() ) return; _dir->setText(dir.path()); } //---------------------------------------------------------------------------- -NewFileDialog::NewFileDialog(Project *project, QWidget *parent) - : NewDialog(i18n("Create New File"), parent), _project(project) +NewFileDialog::NewFileDialog(Project *project, TQWidget *tqparent) + : NewDialog(i18n("Create New File"), tqparent), _project(project) { _fLabel->setText(i18n("File Name:")); if (project) { - _add = new QCheckBox(i18n("Add to project"), mainWidget()); + _add = new TQCheckBox(i18n("Add to project"), mainWidget()); _add->setChecked(project); _top->addMultiCellWidget(_add, 2,2, 1,2); _top->setRowStretch(3, 1); @@ -71,7 +71,7 @@ NewFileDialog::NewFileDialog(Project *project, QWidget *parent) } } -QString NewFileDialog::startDir() const +TQString NewFileDialog::startDir() const { if (_project) return _project->directory().path(); return ":new_file"; |