summaryrefslogtreecommitdiffstats
path: root/parts/tools/toolsconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/tools/toolsconfig.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/tools/toolsconfig.cpp')
-rw-r--r--parts/tools/toolsconfig.cpp62
1 files changed, 31 insertions, 31 deletions
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 <qapplication.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qheader.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqheader.h>
#include <kapplication.h>
#include <kdesktopfile.h>
@@ -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<Entry> it(_entries);
+ TQStringList l;
+ TQPtrListIterator<Entry> it(_entries);
for ( ; it.current(); ++it)
l.append(it.current()->desktopFile);
@@ -157,7 +157,7 @@ void ToolsConfig::updateList()
_list->clear();
- QPtrListIterator<Entry> it(_entries);
+ TQPtrListIterator<Entry> it(_entries);
for ( ; it.current(); ++it)
_list->insertItem(it.current()->icon, it.current()->name);