summaryrefslogtreecommitdiffstats
path: root/src/libgui/new_dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgui/new_dialogs.cpp')
-rw-r--r--src/libgui/new_dialogs.cpp34
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";