summaryrefslogtreecommitdiffstats
path: root/src/tools/gui/toolchain_config_center.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/gui/toolchain_config_center.cpp')
-rw-r--r--src/tools/gui/toolchain_config_center.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/tools/gui/toolchain_config_center.cpp b/src/tools/gui/toolchain_config_center.cpp
index c8b889d..60df0f8 100644
--- a/src/tools/gui/toolchain_config_center.cpp
+++ b/src/tools/gui/toolchain_config_center.cpp
@@ -9,8 +9,8 @@
***************************************************************************/
#include "toolchain_config_center.h"
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kiconloader.h>
#include "tools/list/tools_config_widget.h"
@@ -19,29 +19,29 @@
#include "toolchain_config_widget.h"
#include "tool_group_ui.h"
-ToolchainsConfigCenter::ToolchainsConfigCenter(const Tool::Group &sgroup, QWidget *parent)
- : TreeListDialog(parent, "configure_toolchains_dialog", true,
+ToolchainsConfigCenter::ToolchainsConfigCenter(const Tool::Group &sgroup, TQWidget *tqparent)
+ : TreeListDialog(tqparent, "configure_toolchains_dialog", true,
i18n("Configure Toolchains"), Ok|User1|User2|Cancel, Cancel, false)
{
setButtonGuiItem(User1, KStdGuiItem::reset());
setButtonGuiItem(User2, KGuiItem(i18n("Update"), "reload"));
_titleBox->addStretch(1);
- _infoButton = new KPushButton(KGuiItem(QString::null, "viewmag"), _frame);
- connect(_infoButton, SIGNAL(clicked()), SLOT(showInformationDialog()));
+ _infoButton = new KPushButton(KGuiItem(TQString(), "viewmag"), _frame);
+ connect(_infoButton, TQT_SIGNAL(clicked()), TQT_SLOT(showInformationDialog()));
_titleBox->addWidget(_infoButton);
- QWidget *current = 0;
+ TQWidget *current = 0;
FOR_EACH(PURL::SourceFamily, family) {
Tool::Lister::ConstIterator it;
for (it=Tool::lister().begin(); it!=Tool::lister().end(); ++it) {
PURL::FileType type = it.data()->implementationType(family.data().toolType);
if ( type==PURL::Nb_FileTypes || type.data().sourceFamily!=family ) continue;
if ( family==PURL::SourceFamily::Asm && it.data()->implementationType(PURL::ToolType::Compiler)!=PURL::Nb_FileTypes ) continue;
- QStringList names = family.label();
+ TQStringList names = family.label();
names += it.data()->label();
- QWidget *page = addPage(names);
- QVBoxLayout *vbox = new QVBoxLayout(page);
+ TQWidget *page = addPage(names);
+ TQVBoxLayout *vbox = new TQVBoxLayout(page);
ToolchainConfigWidget *tcw = static_cast<const ::Tool::GroupUI *>(it.data()->gui())->toolchainConfigWidgetFactory(page);
tcw->init();
tcw->loadConfig();
@@ -52,21 +52,21 @@ ToolchainsConfigCenter::ToolchainsConfigCenter(const Tool::Group &sgroup, QWidge
}
showPage(current);
aboutToShowPageSlot(current);
- connect(this, SIGNAL(aboutToShowPage(QWidget *)), SLOT(aboutToShowPageSlot(QWidget *)));
+ connect(this, TQT_SIGNAL(aboutToShowPage(TQWidget *)), TQT_SLOT(aboutToShowPageSlot(TQWidget *)));
}
-void ToolchainsConfigCenter::aboutToShowPageSlot(QWidget *page)
+void ToolchainsConfigCenter::aboutToShowPageSlot(TQWidget *page)
{
- if ( !_pages.contains(page) ) _infoButton->hide();
+ if ( !_pages.tqcontains(page) ) _infoButton->hide();
else {
_infoButton->show();
- QTimer::singleShot(0, _pages[page], SLOT(detect()));
+ TQTimer::singleShot(0, _pages[page], TQT_SLOT(detect()));
}
}
void ToolchainsConfigCenter::slotApply()
{
- QMap<QWidget *, ToolchainConfigWidget *>::iterator it;
+ TQMap<TQWidget *, ToolchainConfigWidget *>::iterator it;
for (it=_pages.begin(); it!=_pages.end(); ++it) it.data()->saveConfig();
}
@@ -80,7 +80,7 @@ ToolchainConfigWidget *ToolchainsConfigCenter::current() const
{
int i = activePageIndex();
if ( i==-1 ) return 0;
- QMap<QWidget *, ToolchainConfigWidget *>::const_iterator it;
+ TQMap<TQWidget *, ToolchainConfigWidget *>::const_iterator it;
for (it=_pages.begin(); it!=_pages.end(); ++it)
if ( pageIndex(it.key())==i ) return it.data();
Q_ASSERT(false);