summaryrefslogtreecommitdiffstats
path: root/buildtools/custommakefiles/customotherconfigwidget.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 /buildtools/custommakefiles/customotherconfigwidget.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 'buildtools/custommakefiles/customotherconfigwidget.cpp')
-rw-r--r--buildtools/custommakefiles/customotherconfigwidget.cpp46
1 files changed, 23 insertions, 23 deletions
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 <custombuildoptionswidgetbase.h>
#include <customprojectpart.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qlistview.h>
-#include <qgroupbox.h>
-#include <qvalidator.h>
+#include <tqcombobox.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqlistview.h>
+#include <tqgroupbox.h>
+#include <tqvalidator.h>
#include <kdebug.h>
#include <klocale.h>
#include <environmentvariableswidget.h>
-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);