From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/tools/toolsconfig.cpp | 62 ++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'parts/tools/toolsconfig.cpp') diff --git a/parts/tools/toolsconfig.cpp b/parts/tools/toolsconfig.cpp index 523fe388..c8b4566f 100644 --- a/parts/tools/toolsconfig.cpp +++ b/parts/tools/toolsconfig.cpp @@ -1,11 +1,11 @@ #include "toolsconfig.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -17,63 +17,63 @@ #include "kapplicationtree.h" -ToolsConfig::ToolsConfig(QWidget *parent, const char *name) - : QWidget(parent, name), _tree(0) +ToolsConfig::ToolsConfig(TQWidget *parent, const char *name) + : TQWidget(parent, name), _tree(0) { _entries.setAutoDelete(true); } -void ToolsConfig::showEvent(QShowEvent *e) +void ToolsConfig::showEvent(TQShowEvent *e) { - QWidget::showEvent(e); + TQWidget::showEvent(e); if (!_tree) { - QApplication::setOverrideCursor(Qt::waitCursor); + TQApplication::setOverrideCursor(Qt::waitCursor); - QHBoxLayout *hbox = new QHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + TQHBoxLayout *hbox = new TQHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - QVBoxLayout *vbox = new QVBoxLayout(hbox); + TQVBoxLayout *vbox = new TQVBoxLayout(hbox); _tree = new KDevApplicationTree(this); _tree->header()->hide(); - QLabel *l = new QLabel(_tree, i18n("&Applications:"), this); + TQLabel *l = new TQLabel(_tree, i18n("&Applications:"), this); l->show(); _tree->show(); vbox->addWidget(l); vbox->addWidget(_tree); - vbox = new QVBoxLayout(hbox); + vbox = new TQVBoxLayout(hbox); - _toList = new QPushButton(QApplication::reverseLayout() ? "<<" : ">>", this); + _toList = new TQPushButton(TQApplication::reverseLayout() ? "<<" : ">>", this); _toList->show(); vbox->addWidget(_toList); - connect(_toList, SIGNAL(clicked()), this, SLOT(toList())); + connect(_toList, TQT_SIGNAL(clicked()), this, TQT_SLOT(toList())); - _toTree = new QPushButton(QApplication::reverseLayout() ? ">>" : "<<", this); + _toTree = new TQPushButton(TQApplication::reverseLayout() ? ">>" : "<<", this); _toTree->show(); vbox->addWidget(_toTree); - connect(_toTree, SIGNAL(clicked()), this, SLOT(toTree())); + connect(_toTree, TQT_SIGNAL(clicked()), this, TQT_SLOT(toTree())); - vbox = new QVBoxLayout(hbox); - _list = new QListBox(this); - l = new QLabel(_list, i18n("&Tools menu:"), this); + vbox = new TQVBoxLayout(hbox); + _list = new TQListBox(this); + l = new TQLabel(_list, i18n("&Tools menu:"), this); l->show(); _list->show(); vbox->addWidget(l); vbox->addWidget(_list); - QApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } fill(); checkButtons(); - connect(_tree, SIGNAL(selectionChanged()), this, SLOT(checkButtons())); - connect(_list, SIGNAL(selectionChanged()), this, SLOT(checkButtons())); + connect(_tree, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(checkButtons())); + connect(_list, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(checkButtons())); } @@ -91,14 +91,14 @@ void ToolsConfig::fill() KConfig *config = ToolsFactory::instance()->config(); config->setGroup("Tools"); - QStringList list = config->readListEntry("Tools"); + TQStringList list = config->readListEntry("Tools"); - for (QStringList::Iterator it = list.begin(); it != list.end(); ++it) + for (TQStringList::Iterator it = list.begin(); it != list.end(); ++it) add(*it); } -void ToolsConfig::add(const QString &desktopFile) +void ToolsConfig::add(const TQString &desktopFile) { KDesktopFile df(desktopFile, true); if (df.readName().isEmpty()) @@ -141,8 +141,8 @@ void ToolsConfig::accept() KConfig *config = ToolsFactory::instance()->config(); config->setGroup("Tools"); - QStringList l; - QPtrListIterator it(_entries); + TQStringList l; + TQPtrListIterator it(_entries); for ( ; it.current(); ++it) l.append(it.current()->desktopFile); @@ -157,7 +157,7 @@ void ToolsConfig::updateList() _list->clear(); - QPtrListIterator it(_entries); + TQPtrListIterator it(_entries); for ( ; it.current(); ++it) _list->insertItem(it.current()->icon, it.current()->name); -- cgit v1.2.3