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 --- .../custommakefiles/customotherconfigwidget.cpp | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'buildtools/custommakefiles/customotherconfigwidget.cpp') diff --git a/buildtools/custommakefiles/customotherconfigwidget.cpp b/buildtools/custommakefiles/customotherconfigwidget.cpp index 47fe4b4d..d40c55d2 100644 --- a/buildtools/custommakefiles/customotherconfigwidget.cpp +++ b/buildtools/custommakefiles/customotherconfigwidget.cpp @@ -11,25 +11,25 @@ #include "customotherconfigwidget.h" #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include -CustomOtherConfigWidget::CustomOtherConfigWidget(CustomProjectPart* part, const QString& configGroup, QWidget* parent) +CustomOtherConfigWidget::CustomOtherConfigWidget(CustomProjectPart* part, const TQString& configGroup, TQWidget* parent) : CustomOtherConfigWidgetBase(parent), m_part(part), m_configGroup(configGroup), m_dom( *part->projectDom() ) { @@ -38,7 +38,7 @@ CustomOtherConfigWidget::CustomOtherConfigWidget(CustomProjectPart* part, const defaultTarget_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/other/defaulttarget")); makeoptions_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/other/otheroptions")); - envs_combo->setValidator(new QRegExpValidator(QRegExp("^\\D.*"), this)); + envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D.*"), this)); m_allEnvironments = m_part->allMakeEnvironments(); m_currentEnvironment = m_part->currentMakeEnvironment(); env_var_group->setColumnLayout( 1, Qt::Vertical ); @@ -53,9 +53,9 @@ CustomOtherConfigWidget::~CustomOtherConfigWidget() } -void CustomOtherConfigWidget::envNameChanged(const QString& envName) +void CustomOtherConfigWidget::envNameChanged(const TQString& envName) { - QStringList allEnvNames = m_part->allMakeEnvironments(); + TQStringList allEnvNames = m_part->allMakeEnvironments(); bool canAdd = !allEnvNames.contains(envName) && !envName.contains("/") && !envName.isEmpty(); bool canRemove = allEnvNames.contains(envName) && allEnvNames.count() > 1; addenvs_button->setEnabled(canAdd); @@ -63,7 +63,7 @@ void CustomOtherConfigWidget::envNameChanged(const QString& envName) removeenvs_button->setEnabled(canRemove); } -void CustomOtherConfigWidget::envChanged(const QString& envName) +void CustomOtherConfigWidget::envChanged(const TQString& envName) { if (envName == m_currentEnvironment || !m_allEnvironments.contains(envName)) return; @@ -79,7 +79,7 @@ void CustomOtherConfigWidget::envChanged(const QString& envName) void CustomOtherConfigWidget::envAdded() { - QString env = envs_combo->currentText(); + TQString env = envs_combo->currentText(); m_allEnvironments.append(env); envs_combo->clear(); @@ -89,19 +89,19 @@ void CustomOtherConfigWidget::envAdded() void CustomOtherConfigWidget::envRemoved() { - QString env = envs_combo->currentText(); - QDomNode node = DomUtil::elementByPath(m_dom, m_configGroup + "/other/environments"); + TQString env = envs_combo->currentText(); + TQDomNode node = DomUtil::elementByPath(m_dom, m_configGroup + "/other/environments"); node.removeChild(node.namedItem(env)); m_allEnvironments.remove(env); envs_combo->clear(); envs_combo->insertStringList(m_allEnvironments); - m_currentEnvironment = QString::null; + m_currentEnvironment = TQString::null; envChanged( m_allEnvironments[0] ); } void CustomOtherConfigWidget::envCopied() { - QString env = envs_combo->currentText(); + TQString env = envs_combo->currentText(); m_allEnvironments.append(env); envs_combo->clear(); envs_combo->insertStringList(m_allEnvironments); -- cgit v1.2.3