summaryrefslogtreecommitdiffstats
path: root/buildtools/custommakefiles/custommakeconfigwidget.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/custommakeconfigwidget.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/custommakeconfigwidget.cpp')
-rw-r--r--buildtools/custommakefiles/custommakeconfigwidget.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/buildtools/custommakefiles/custommakeconfigwidget.cpp b/buildtools/custommakefiles/custommakeconfigwidget.cpp
index 2af0d137..b47ef3ff 100644
--- a/buildtools/custommakefiles/custommakeconfigwidget.cpp
+++ b/buildtools/custommakefiles/custommakeconfigwidget.cpp
@@ -11,24 +11,24 @@
#include "custommakeconfigwidget.h"
#include <custombuildoptionswidgetbase.h>
#include <customprojectpart.h>
-#include <qcombobox.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qcheckbox.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 <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqlistview.h>
+#include <tqgroupbox.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include <kdebug.h>
#include <klocale.h>
#include <environmentvariableswidget.h>
-CustomMakeConfigWidget::CustomMakeConfigWidget(CustomProjectPart* part, const QString& configGroup, QWidget* parent)
+CustomMakeConfigWidget::CustomMakeConfigWidget(CustomProjectPart* part, const TQString& configGroup, TQWidget* parent)
: CustomMakeConfigWidgetBase(parent),
m_part(part), m_configGroup(configGroup), m_dom( *part->projectDom() )
{
@@ -43,7 +43,7 @@ CustomMakeConfigWidget::CustomMakeConfigWidget(CustomProjectPart* part, const QS
defaultTarget_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/make/defaulttarget"));
makeoptions_edit->setText(DomUtil::readEntry(m_dom, m_configGroup + "/make/makeoptions"));
- envs_combo->setValidator(new QRegExpValidator(QRegExp("^\\D[^\\s]*"), this));
+ envs_combo->setValidator(new TQRegExpValidator(TQRegExp("^\\D[^\\s]*"), this));
m_allEnvironments = m_part->allMakeEnvironments();
m_currentEnvironment = m_part->currentMakeEnvironment();
env_var_group->setColumnLayout( 1, Qt::Vertical );
@@ -58,9 +58,9 @@ CustomMakeConfigWidget::~CustomMakeConfigWidget()
}
-void CustomMakeConfigWidget::envNameChanged(const QString& envName)
+void CustomMakeConfigWidget::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);
@@ -68,7 +68,7 @@ void CustomMakeConfigWidget::envNameChanged(const QString& envName)
removeenvs_button->setEnabled(canRemove);
}
-void CustomMakeConfigWidget::envChanged(const QString& envName)
+void CustomMakeConfigWidget::envChanged(const TQString& envName)
{
if (envName == m_currentEnvironment || !m_allEnvironments.contains(envName))
return;
@@ -84,7 +84,7 @@ void CustomMakeConfigWidget::envChanged(const QString& envName)
void CustomMakeConfigWidget::envAdded()
{
- QString env = envs_combo->currentText();
+ TQString env = envs_combo->currentText();
m_allEnvironments.append(env);
envs_combo->clear();
@@ -94,19 +94,19 @@ void CustomMakeConfigWidget::envAdded()
void CustomMakeConfigWidget::envRemoved()
{
- QString env = envs_combo->currentText();
- QDomNode node = DomUtil::elementByPath(m_dom, m_configGroup + "/make/environments");
+ TQString env = envs_combo->currentText();
+ TQDomNode node = DomUtil::elementByPath(m_dom, m_configGroup + "/make/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 CustomMakeConfigWidget::envCopied()
{
- QString env = envs_combo->currentText();
+ TQString env = envs_combo->currentText();
m_allEnvironments.append(env);
envs_combo->clear();
envs_combo->insertStringList(m_allEnvironments);