summaryrefslogtreecommitdiffstats
path: root/buildtools/lib/widgets/environmentvariableswidget.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/lib/widgets/environmentvariableswidget.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/lib/widgets/environmentvariableswidget.cpp')
-rw-r--r--buildtools/lib/widgets/environmentvariableswidget.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/buildtools/lib/widgets/environmentvariableswidget.cpp b/buildtools/lib/widgets/environmentvariableswidget.cpp
index e47142f5..3c3e448f 100644
--- a/buildtools/lib/widgets/environmentvariableswidget.cpp
+++ b/buildtools/lib/widgets/environmentvariableswidget.cpp
@@ -21,10 +21,10 @@
#include "environmentvariableswidget.h"
#include "environmentdisplaydialog.h"
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qlistview.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqlistview.h>
#include "domutil.h"
#include "addenvvardlg.h"
@@ -32,7 +32,7 @@
void EnvironmentVariablesWidget::addVarClicked()
{
AddEnvvarDialog dlg( this, "add env dialog" ) ;
- if (QListViewItem *Item = listview->selectedItem())
+ if (TQListViewItem *Item = listview->selectedItem())
{
dlg.setvarname(Item->text(0));
dlg.setvalue(Item->text(1));
@@ -40,14 +40,14 @@ void EnvironmentVariablesWidget::addVarClicked()
if (!dlg.exec())
return;
- (void) new QListViewItem(listview, dlg.varname(), dlg.value());
+ (void) new TQListViewItem(listview, dlg.varname(), dlg.value());
}
void EnvironmentVariablesWidget::editVarClicked()
{
AddEnvvarDialog dlg( this, "edit env dialog" );
- QListViewItem *item = listview->selectedItem();
+ TQListViewItem *item = listview->selectedItem();
if ( !item )
return;
dlg.setvarname(item->text(0));
@@ -66,20 +66,20 @@ void EnvironmentVariablesWidget::removeVarClicked()
}
-EnvironmentVariablesWidget::EnvironmentVariablesWidget(QDomDocument &dom, const QString &configGroup,
- QWidget *parent, const char *name)
+EnvironmentVariablesWidget::EnvironmentVariablesWidget(TQDomDocument &dom, const TQString &configGroup,
+ TQWidget *parent, const char *name)
: EnvironmentVariablesWidgetBase(parent, name),
m_dom(dom), m_configGroup(configGroup)
{
readEnvironment(dom, configGroup);
- connect( listview, SIGNAL( doubleClicked ( QListViewItem *, const QPoint &, int ) ), this, SLOT( editVarClicked() ) );
+ connect( listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), this, TQT_SLOT( editVarClicked() ) );
}
EnvironmentVariablesWidget::~EnvironmentVariablesWidget()
{}
-void EnvironmentVariablesWidget::readEnvironment(QDomDocument &dom, const QString &configGroup)
+void EnvironmentVariablesWidget::readEnvironment(TQDomDocument &dom, const TQString &configGroup)
{
m_dom = dom;
m_configGroup = configGroup;
@@ -89,18 +89,18 @@ void EnvironmentVariablesWidget::readEnvironment(QDomDocument &dom, const QStrin
DomUtil::PairList list =
DomUtil::readPairListEntry(dom, m_configGroup, "envvar", "name", "value");
- QListViewItem *lastItem = 0;
+ TQListViewItem *lastItem = 0;
DomUtil::PairList::ConstIterator it;
for (it = list.begin(); it != list.end(); ++it) {
- QListViewItem *newItem = new QListViewItem(listview, (*it).first, (*it).second);
+ TQListViewItem *newItem = new TQListViewItem(listview, (*it).first, (*it).second);
if (lastItem)
newItem->moveItem(lastItem);
lastItem = newItem;
}
}
-void EnvironmentVariablesWidget::changeConfigGroup( const QString &configGroup)
+void EnvironmentVariablesWidget::changeConfigGroup( const TQString &configGroup)
{
m_configGroup = configGroup;
}
@@ -108,7 +108,7 @@ void EnvironmentVariablesWidget::changeConfigGroup( const QString &configGroup)
void EnvironmentVariablesWidget::accept()
{
DomUtil::PairList list;
- QListViewItem *item = listview->firstChild();
+ TQListViewItem *item = listview->firstChild();
while (item) {
list << DomUtil::Pair(item->text(0), item->text(1));
item = item->nextSibling();