diff options
Diffstat (limited to 'quanta/dialogs/dtepeditdlg.cpp')
-rw-r--r-- | quanta/dialogs/dtepeditdlg.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/quanta/dialogs/dtepeditdlg.cpp b/quanta/dialogs/dtepeditdlg.cpp index c0bf4797..c2595716 100644 --- a/quanta/dialogs/dtepeditdlg.cpp +++ b/quanta/dialogs/dtepeditdlg.cpp @@ -13,13 +13,13 @@ * * ***************************************************************************/ -#include <qcheckbox.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qgroupbox.h> -#include <qradiobutton.h> -#include <qtabwidget.h> -#include <qwidgetstack.h> +#include <tqcheckbox.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqgroupbox.h> +#include <tqradiobutton.h> +#include <tqtabwidget.h> +#include <tqwidgetstack.h> //kde includes @@ -40,7 +40,7 @@ #include "resource.h" #include "quantacommon.h" -DTEPEditDlg::DTEPEditDlg(const QString& descriptionFile, QWidget *parent, const char *name) +DTEPEditDlg::DTEPEditDlg(const TQString& descriptionFile, TQWidget *parent, const char *name) : DTEPEditDlgS(parent, name) { nameEdit->setFocus(); @@ -91,8 +91,8 @@ void DTEPEditDlg::readGeneral() rulesWidgetStack->raiseWidget(m_family); generalWidgetStack->raiseWidget(m_family); caseSensitive->setChecked(m_config->readBoolEntry("CaseSensitive", false)); - QString inherits = m_config->readEntry("Inherits"); - QStringList lst(DTDs::ref()->nameList()); + TQString inherits = m_config->readEntry("Inherits"); + TQStringList lst(DTDs::ref()->nameList()); inheritsCombo->insertStringList(lst); int idx = lst.findIndex(inherits); if (idx == -1) @@ -113,11 +113,11 @@ void DTEPEditDlg::readGeneral() void DTEPEditDlg::readPages() { int i = 1; - while (m_config->hasGroup(QString("Page%1").arg(i)) && i < 6) + while (m_config->hasGroup(TQString("Page%1").arg(i)) && i < 6) { - m_config->setGroup(QString("Page%1").arg(i)); - QString title = m_config->readEntry("Title"); - QString groups = m_config->readEntry("Groups"); + m_config->setGroup(TQString("Page%1").arg(i)); + TQString title = m_config->readEntry("Title"); + TQString groups = m_config->readEntry("Groups"); if (i == 1) { enablePage1->setChecked(true); @@ -197,8 +197,8 @@ void DTEPEditDlg::readParserRules() void DTEPEditDlg::saveResult() { - QString targetFile = m_descriptionFile; - QFileInfo f(targetFile); + TQString targetFile = m_descriptionFile; + TQFileInfo f(targetFile); if (!f.isWritable()) { if (f.exists()) @@ -212,7 +212,7 @@ void DTEPEditDlg::saveResult() } if (!targetFile.isEmpty()) { - QFile f(targetFile); + TQFile f(targetFile); if (f.exists()) f.remove(); KConfig* newConfig = m_config->copyTo(targetFile); @@ -255,35 +255,35 @@ void DTEPEditDlg::writePages(KConfig *config) if (enablePage1->isChecked()) { num++; - config->setGroup(QString("Page%1").arg(num)); + config->setGroup(TQString("Page%1").arg(num)); writeEntry(config, "Title", pageTitleEdit1->text()); writeEntry(config, "Groups", groupsEdit1->text()); } if (enablePage2->isChecked()) { num++; - config->setGroup(QString("Page%1").arg(num)); + config->setGroup(TQString("Page%1").arg(num)); writeEntry(config, "Title", pageTitleEdit2->text()); writeEntry(config, "Groups", groupsEdit2->text()); } if (enablePage3->isChecked()) { num++; - config->setGroup(QString("Page%1").arg(num)); + config->setGroup(TQString("Page%1").arg(num)); writeEntry(config, "Title", pageTitleEdit3->text()); writeEntry(config, "Groups", groupsEdit3->text()); } if (enablePage4->isChecked()) { num++; - config->setGroup(QString("Page%1").arg(num)); + config->setGroup(TQString("Page%1").arg(num)); writeEntry(config, "Title", pageTitleEdit4->text()); writeEntry(config, "Groups", groupsEdit4->text()); } if (enablePage5->isChecked()) { num++; - config->setGroup(QString("Page%1").arg(num)); + config->setGroup(TQString("Page%1").arg(num)); writeEntry(config, "Title", pageTitleEdit5->text()); writeEntry(config, "Groups", groupsEdit5->text()); } @@ -343,10 +343,10 @@ void DTEPEditDlg::readStructures() int objectGroupId = m_config->readNumEntry("ObjectGroupIndex", -1); int i = 1; - while (m_config->hasGroup(QString("StructGroup_%1").arg(i))) + while (m_config->hasGroup(TQString("StructGroup_%1").arg(i))) { StructGroup group; - m_config->setGroup(QString("StructGroup_%1").arg(i)); + m_config->setGroup(TQString("StructGroup_%1").arg(i)); group.name = m_config->readEntry("Name"); group.noName = m_config->readEntry("No_Name"); group.icon = m_config->readEntry("Icon"); @@ -372,7 +372,7 @@ void DTEPEditDlg::readStructures() m_structGroups.append(group); i++; } - for (QValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) + for (TQValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) { structuresList->insertItem((*it).name); } @@ -384,10 +384,10 @@ void DTEPEditDlg::writeStructures(KConfig *config) config->writeEntry("StructGroupsCount", m_structGroups.count()); int i = 1; - for (QValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) + for (TQValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) { StructGroup group = *it; - config->setGroup(QString("StructGroup_%1").arg(i)); + config->setGroup(TQString("StructGroup_%1").arg(i)); writeEntry(config, "Name", group.name); writeEntry(config, "No_Name", group.noName); writeEntry(config, "Icon", group.icon); @@ -430,7 +430,7 @@ void DTEPEditDlg::writeStructures(KConfig *config) i++; } - for (QValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) + for (TQValueList<StructGroup>::ConstIterator it = m_structGroups.constBegin(); it != m_structGroups.constEnd(); ++it) { structuresList->insertItem((*it).name); } @@ -544,7 +544,7 @@ void DTEPEditDlg::slotDeleteStructGroup() } } -void DTEPEditDlg::writeEntry(KConfig *config, const QString &key, const QString &value) +void DTEPEditDlg::writeEntry(KConfig *config, const TQString &key, const TQString &value) { if (value.isEmpty()) config->deleteEntry(key); |