diff options
Diffstat (limited to 'parts/tools/toolsconfigwidget.cpp')
-rw-r--r-- | parts/tools/toolsconfigwidget.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/parts/tools/toolsconfigwidget.cpp b/parts/tools/toolsconfigwidget.cpp index 72b102be..b4643b26 100644 --- a/parts/tools/toolsconfigwidget.cpp +++ b/parts/tools/toolsconfigwidget.cpp @@ -11,9 +11,9 @@ #include "toolsconfigwidget.h" -#include <qcheckbox.h> -#include <qlistbox.h> -#include <qtimer.h> +#include <tqcheckbox.h> +#include <tqlistbox.h> +#include <tqtimer.h> #include <klineedit.h> #include <kconfig.h> @@ -31,8 +31,8 @@ struct ToolsConfigEntry { - QString menutext; - QString cmdline; + TQString menutext; + TQString cmdline; bool isdesktopfile; bool captured; bool isEmpty() const { @@ -41,7 +41,7 @@ struct ToolsConfigEntry }; -ToolsConfigWidget::ToolsConfigWidget(QWidget *parent, const char *name) +ToolsConfigWidget::ToolsConfigWidget(TQWidget *parent, const char *name) : ToolsConfigWidgetBase(parent, name) { m_toolsmenuEntries.setAutoDelete(true); @@ -61,16 +61,16 @@ ToolsConfigWidget::~ToolsConfigWidget() {} -void ToolsConfigWidget::readGroup(const QString &group, QDict<ToolsConfigEntry> *entryDict) +void ToolsConfigWidget::readGroup(const TQString &group, TQDict<ToolsConfigEntry> *entryDict) { KConfig *config = ToolsFactory::instance()->config(); config->setGroup("External Tools"); - QStringList list = config->readListEntry(group); + TQStringList list = config->readListEntry(group); - QStringList::ConstIterator it; + TQStringList::ConstIterator it; for (it = list.begin(); it != list.end(); ++it) { config->setGroup(group + " " + (*it)); - QString cmdline = config->readPathEntry("CommandLine"); + TQString cmdline = config->readPathEntry("CommandLine"); bool isdesktopfile = config->readBoolEntry("DesktopFile"); bool captured = config->readBoolEntry("Captured"); ToolsConfigEntry *entry = new ToolsConfigEntry; @@ -83,13 +83,13 @@ void ToolsConfigWidget::readGroup(const QString &group, QDict<ToolsConfigEntry> } -void ToolsConfigWidget::storeGroup(const QString &group, const QDict<ToolsConfigEntry> &entryDict) +void ToolsConfigWidget::storeGroup(const TQString &group, const TQDict<ToolsConfigEntry> &entryDict) { KConfig *config = ToolsFactory::instance()->config(); - QStringList list; + TQStringList list; - QDictIterator<ToolsConfigEntry> it(entryDict); + TQDictIterator<ToolsConfigEntry> it(entryDict); for (; it.current(); ++it) { ToolsConfigEntry *entry = it.current(); list << entry->menutext; @@ -105,11 +105,11 @@ void ToolsConfigWidget::storeGroup(const QString &group, const QDict<ToolsConfig -void ToolsConfigWidget::fillListBox(QListBox *lb, const QDict<ToolsConfigEntry> &entryDict) +void ToolsConfigWidget::fillListBox(TQListBox *lb, const TQDict<ToolsConfigEntry> &entryDict) { lb->clear(); - QDictIterator<ToolsConfigEntry> it(entryDict); + TQDictIterator<ToolsConfigEntry> it(entryDict); for (; it.current(); ++it) { ToolsConfigEntry *entry = it.current(); if (entry->isdesktopfile) { @@ -122,9 +122,9 @@ void ToolsConfigWidget::fillListBox(QListBox *lb, const QDict<ToolsConfigEntry> } -bool ToolsConfigWidget::addEntry(ToolsConfigEntry *entry, QDict<ToolsConfigEntry> *entryDict) +bool ToolsConfigWidget::addEntry(ToolsConfigEntry *entry, TQDict<ToolsConfigEntry> *entryDict) { - QString menutext = entry->menutext; + TQString menutext = entry->menutext; if (entryDict->find(menutext)) { delete entry; KMessageBox::sorry(this, i18n("An entry with this title exists already.")); @@ -185,7 +185,7 @@ void ToolsConfigWidget::toolsmenuaddClicked() void ToolsConfigWidget::toolsmenuremoveClicked() { - QString menutext = toolsmenuBox->currentText(); + TQString menutext = toolsmenuBox->currentText(); m_toolsmenuEntries.remove(menutext); updateListBoxes(); } @@ -213,7 +213,7 @@ void ToolsConfigWidget::filecontextaddClicked() void ToolsConfigWidget::filecontextremoveClicked() { - QString menutext = filecontextBox->currentText(); + TQString menutext = filecontextBox->currentText(); m_filecontextEntries.remove(menutext); updateListBoxes(); } @@ -240,21 +240,21 @@ void ToolsConfigWidget::dircontextaddClicked() void ToolsConfigWidget::dircontextremoveClicked() { - QString menutext = dircontextBox->currentText(); + TQString menutext = dircontextBox->currentText(); m_dircontextEntries.remove(menutext); updateListBoxes(); } -bool ToolsConfigWidget::eventFilter(QObject *o, QEvent *e) +bool ToolsConfigWidget::eventFilter(TQObject *o, TQEvent *e) { - if (e->type() == QEvent::DragEnter || e->type() == QEvent::DragMove) { - QDragMoveEvent *dme = static_cast<QDragMoveEvent*>(e); + if (e->type() == TQEvent::DragEnter || e->type() == TQEvent::DragMove) { + TQDragMoveEvent *dme = static_cast<TQDragMoveEvent*>(e); if (KURLDrag::canDecode(dme)) dme->accept(); return true; - } else if (e->type() == QEvent::Drop) { - QDropEvent *de = static_cast<QDropEvent*>(e); + } else if (e->type() == TQEvent::Drop) { + TQDropEvent *de = static_cast<TQDropEvent*>(e); KURL::List fileList; if (KURLDrag::decode(de, fileList)) { KURL::List::ConstIterator it; |