summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/choosetargetdialog.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/autotools/choosetargetdialog.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/autotools/choosetargetdialog.cpp')
-rw-r--r--buildtools/autotools/choosetargetdialog.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/buildtools/autotools/choosetargetdialog.cpp b/buildtools/autotools/choosetargetdialog.cpp
index b35c5c75..4ffc326b 100644
--- a/buildtools/autotools/choosetargetdialog.cpp
+++ b/buildtools/autotools/choosetargetdialog.cpp
@@ -16,15 +16,15 @@
#include "choosetargetdialog.h"
-#include <qcheckbox.h>
-#include <qwidget.h>
-#include <qgroupbox.h>
-#include <qheader.h>
-#include <qlistview.h>
-#include <qptrlist.h>
-#include <qradiobutton.h>
-#include <qstringlist.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqwidget.h>
+#include <tqgroupbox.h>
+#include <tqheader.h>
+#include <tqlistview.h>
+#include <tqptrlist.h>
+#include <tqradiobutton.h>
+#include <tqstringlist.h>
+#include <tqfileinfo.h>
#include <kcombobox.h>
#include <kdialog.h>
@@ -50,15 +50,15 @@ class ChooseTargetDialog::Private
public:
AutoProjectWidget* widget;
AutoProjectPart* part;
- QStringList fileList;
- QPtrList<SubprojectItem> subprojectList;
+ TQStringList fileList;
+ TQPtrList<SubprojectItem> subprojectList;
SubprojectItem* chosenSubproject;
TargetItem* chosenTarget;
ChooseTargetDlgBase* baseUI;
};
ChooseTargetDialog::ChooseTargetDialog ( AutoProjectWidget* widget, AutoProjectPart* part,
- QStringList fileList, QWidget* parent, const char* name )
+ TQStringList fileList, TQWidget* parent, const char* name )
: KDialogBase( parent, name, false, i18n("Automake Manager - Choose Target"),
Ok | Cancel, KDialogBase::Ok, true /* seperator */ )
@@ -76,22 +76,22 @@ ChooseTargetDialog::ChooseTargetDialog ( AutoProjectWidget* widget, AutoProjectP
d->baseUI->subprojectComboBox->setAutoCompletion( true );
d->baseUI->targetComboBox->setAutoCompletion( true );
d->baseUI->newFileList->header()->hide();
- d->baseUI->newFileList->addColumn( QString::null );
+ d->baseUI->newFileList->addColumn( TQString::null );
d->baseUI->newFileList->setSorting(-1);
setIcon ( SmallIcon ( "target_kdevelop" ) );
- QPtrListIterator<SubprojectItem> sit(d->subprojectList);
+ TQPtrListIterator<SubprojectItem> sit(d->subprojectList);
for ( ; (*sit); ++sit )
{
- QPtrList<TargetItem> targetList = (*sit)->targets;
- QPtrListIterator<TargetItem> targetIt(targetList);
+ TQPtrList<TargetItem> targetList = (*sit)->targets;
+ TQPtrListIterator<TargetItem> targetIt(targetList);
// Only insert Subproject which have a "regular" target
for ( ; (*targetIt); ++targetIt )
{
- QString titemPrimary = (*targetIt)->primary;
+ TQString titemPrimary = (*targetIt)->primary;
if ( titemPrimary == "PROGRAMS" || titemPrimary == "LIBRARIES" ||
titemPrimary == "LTLIBRARIES" || titemPrimary == "JAVA" )
{
@@ -123,8 +123,8 @@ ChooseTargetDialog::ChooseTargetDialog ( AutoProjectWidget* widget, AutoProjectP
slotSubprojectChanged ( d->baseUI->subprojectComboBox->text(0) );
}
- QStringList::iterator it;
- QString fileName;
+ TQStringList::iterator it;
+ TQString fileName;
for ( it = fileList.begin(); it != fileList.end(); ++it )
{
@@ -135,13 +135,13 @@ ChooseTargetDialog::ChooseTargetDialog ( AutoProjectWidget* widget, AutoProjectP
fileName = ( *it );
- d->baseUI->newFileList->insertItem( new QListViewItem( d->baseUI->newFileList, fileName ) );
+ d->baseUI->newFileList->insertItem( new TQListViewItem( d->baseUI->newFileList, fileName ) );
}
- connect ( d->baseUI->subprojectComboBox, SIGNAL ( activated ( const QString& ) ),
- this, SLOT( slotSubprojectChanged ( const QString& ) ) );
- connect ( d->baseUI->targetComboBox, SIGNAL ( activated ( const QString& ) ),
- this, SLOT( slotTargetChanged ( const QString& ) ) );
+ connect ( d->baseUI->subprojectComboBox, TQT_SIGNAL ( activated ( const TQString& ) ),
+ this, TQT_SLOT( slotSubprojectChanged ( const TQString& ) ) );
+ connect ( d->baseUI->targetComboBox, TQT_SIGNAL ( activated ( const TQString& ) ),
+ this, TQT_SLOT( slotTargetChanged ( const TQString& ) ) );
}
@@ -149,7 +149,7 @@ ChooseTargetDialog::~ChooseTargetDialog()
{
}
-void ChooseTargetDialog::slotSubprojectChanged ( const QString& name )
+void ChooseTargetDialog::slotSubprojectChanged ( const TQString& name )
{
d->chosenTarget = 0;
SubprojectItem* spitem = d->subprojectList.first();
@@ -158,7 +158,7 @@ void ChooseTargetDialog::slotSubprojectChanged ( const QString& name )
{
if ( spitem->subdir == name )
{
- QPtrList <TargetItem> targetList = spitem->targets;
+ TQPtrList <TargetItem> targetList = spitem->targets;
TargetItem* titem = targetList.first();
d->baseUI->targetComboBox->clear();
@@ -206,12 +206,12 @@ void ChooseTargetDialog::slotSubprojectChanged ( const QString& name )
}
}
-void ChooseTargetDialog::slotTargetChanged( const QString& name )
+void ChooseTargetDialog::slotTargetChanged( const TQString& name )
{
d->baseUI->chosenTargetLabel->setText( ( d->chosenSubproject->path + "/<b>" + name + "</b>" )
.mid( d->part->projectDirectory().length() + 1 ) );
- QPtrList <TargetItem> targetList = d->chosenSubproject->targets;
+ TQPtrList <TargetItem> targetList = d->chosenSubproject->targets;
TargetItem* titem = targetList.first();
for ( ; titem; titem = targetList.next() )
@@ -238,9 +238,9 @@ void ChooseTargetDialog::slotOk()
//kdDebug ( 9020 ) << "3) Chosen target is " << d->chosenTarget->name << endl;
- QStringList newFileList;
- QStringList::iterator it;
- QString directory, fileName;
+ TQStringList newFileList;
+ TQStringList::iterator it;
+ TQString directory, fileName;
for ( it = d->fileList.begin(); it != d->fileList.end(); ++it )
{
@@ -282,10 +282,10 @@ void ChooseTargetDialog::slotOk()
noinst_HEADERS_item->sources.append( fitem );
noinst_HEADERS_item->insertItem( fitem );
- QString varname = "noinst_HEADERS";
+ TQString varname = "noinst_HEADERS";
d->chosenSubproject->variables[ varname ] += ( " " + fileName );
- QMap<QString, QString> replaceMap;
+ TQMap<TQString, TQString> replaceMap;
replaceMap.insert( varname, d->chosenSubproject->variables[ varname ] );
AutoProjectTool::addToMakefileam( d->chosenSubproject->path + "/Makefile.am", replaceMap );
@@ -296,11 +296,11 @@ void ChooseTargetDialog::slotOk()
d->chosenTarget->sources.append( fitem );
d->chosenTarget->insertItem( fitem );
- QString canontargetname = AutoProjectTool::canonicalize( d->chosenTarget->name );
- QString varname = canontargetname + "_SOURCES";
+ TQString canontargetname = AutoProjectTool::canonicalize( d->chosenTarget->name );
+ TQString varname = canontargetname + "_SOURCES";
d->chosenSubproject->variables[ varname ] += ( " " + fileName );
- QMap<QString, QString> replaceMap;
+ TQMap<TQString, TQString> replaceMap;
replaceMap.insert( varname, d->chosenSubproject->variables[ varname ] );
AutoProjectTool::addToMakefileam( d->chosenSubproject->path + "/Makefile.am", replaceMap );