diff options
-rw-r--r-- | config/exportthemedialog.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/config/exportthemedialog.cpp b/config/exportthemedialog.cpp index a677cb8..fef7f28 100644 --- a/config/exportthemedialog.cpp +++ b/config/exportthemedialog.cpp @@ -1,5 +1,5 @@ /* - QtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com + TQtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com ---- @@ -30,23 +30,23 @@ #define CONFIG_WRITE #include "config_file.c" -CExportThemeDialog::CExportThemeDialog(QWidget *parent) +CExportThemeDialog::CExportThemeDialog(TQWidget *parent) : KDialogBase(parent, "ExportDialog", true, i18n("Export Theme"), Ok|Cancel) { - QWidget *page = new QWidget(this); - QGridLayout *layout = new QGridLayout(page, 3, 2, 0, spacingHint()); - - layout->addWidget(new QLabel(i18n("Name:"), page), 0, 0); - layout->addWidget(new QLabel(i18n("Comment:"), page), 1, 0); - layout->addWidget(new QLabel(i18n("Destination folder:"), page), 2, 0); - layout->addWidget(themeName=new QLineEdit(page), 0, 1); - layout->addWidget(themeComment=new QLineEdit(i18n("QtCurve based theme"), page), 1, 1); + TQWidget *page = new TQWidget(this); + TQGridLayout *layout = new TQGridLayout(page, 3, 2, 0, spacingHint()); + + layout->addWidget(new TQLabel(i18n("Name:"), page), 0, 0); + layout->addWidget(new TQLabel(i18n("Comment:"), page), 1, 0); + layout->addWidget(new TQLabel(i18n("Destination folder:"), page), 2, 0); + layout->addWidget(themeName=new TQLineEdit(page), 0, 1); + layout->addWidget(themeComment=new TQLineEdit(i18n("QtCurve based theme"), page), 1, 1); layout->addWidget(themeUrl=new KURLRequester(page), 2, 1); themeUrl->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly); themeUrl->lineEdit()->setReadOnly(true); - themeUrl->setURL(QDir::homeDirPath()); + themeUrl->setURL(TQDir::homeDirPath()); setMainWidget(page); } @@ -58,13 +58,13 @@ void CExportThemeDialog::run(const Options &o) void CExportThemeDialog::slotOk() { - QString name(themeName->text().stripWhiteSpace().lower()); + TQString name(themeName->text().stripWhiteSpace().lower()); if(name.isEmpty()) KMessageBox::error(this, i18n("Name is empty!")); else { - QString fileName(themeUrl->url()+"/"THEME_PREFIX+name+".themerc"); + TQString fileName(themeUrl->url()+"/"THEME_PREFIX+name+".themerc"); KConfig cfg(fileName, false, false); bool rv(!cfg.isReadOnly()); @@ -82,7 +82,7 @@ void CExportThemeDialog::slotOk() if(rv) { - QDialog::accept(); + TQDialog::accept(); KMessageBox::information(this, i18n("Succesfully created:\n%1").arg(fileName)); } else |