summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/addtargetdlg.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/addtargetdlg.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/addtargetdlg.cpp')
-rw-r--r--buildtools/autotools/addtargetdlg.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/buildtools/autotools/addtargetdlg.cpp b/buildtools/autotools/addtargetdlg.cpp
index b01b5b82..5ca96c45 100644
--- a/buildtools/autotools/addtargetdlg.cpp
+++ b/buildtools/autotools/addtargetdlg.cpp
@@ -11,10 +11,10 @@
#include "addtargetdlg.h"
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qvalidator.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include <klocale.h>
@@ -29,7 +29,7 @@
AddTargetDialog::AddTargetDialog(AutoProjectWidget *widget, SubprojectItem *item,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddTargetDialogBase(parent, name, true)
{
m_subproject = item;
@@ -50,11 +50,11 @@ AddTargetDialog::AddTargetDialog(AutoProjectWidget *widget, SubprojectItem *item
if (widget->kdeMode())
ldflagsother_edit->setText("$(all_libraries)");
- connect( filename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( slotFileNameChanged (const QString&) ) );
+ connect( filename_edit, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotFileNameChanged (const TQString&) ) );
setIcon ( SmallIcon ( "targetnew_kdevelop.png" ) );
- canonicalLabel->setText ( QString::null );
+ canonicalLabel->setText ( TQString::null );
}
@@ -64,7 +64,7 @@ AddTargetDialog::~AddTargetDialog()
void AddTargetDialog::primaryChanged()
{
- QStringList list;
+ TQStringList list;
switch (primary_combo->currentItem()) {
case 0: // Program
list.append("bin");
@@ -108,8 +108,8 @@ void AddTargetDialog::primaryChanged()
prefix_combo->clear();
prefix_combo->insertStringList(list);
- QStringList prefixes;
- QMap<QString,QString>::ConstIterator it;
+ TQStringList prefixes;
+ TQMap<TQString,TQString>::ConstIterator it;
for (it = m_subproject->prefixes.begin(); it != m_subproject->prefixes.end(); ++it)
prefix_combo->insertItem(it.key());
@@ -126,10 +126,10 @@ void AddTargetDialog::primaryChanged()
void AddTargetDialog::accept()
{
- QString name = filename_edit->text().stripWhiteSpace();
- QString prefix = prefix_combo->currentText();
+ TQString name = filename_edit->text().stripWhiteSpace();
+ TQString prefix = prefix_combo->currentText();
- QString primary;
+ TQString primary;
switch (primary_combo->currentItem()) {
case 0: primary = "PROGRAMS"; break;
case 1: primary = "LIBRARIES"; break;
@@ -165,22 +165,22 @@ void AddTargetDialog::accept()
#endif
if( primary.endsWith("LIBRARIES") && !name.startsWith("lib") && !module_box->isChecked() )
- name.prepend( QString::fromLatin1("lib") );
+ name.prepend( TQString::fromLatin1("lib") );
if( primary == "LTLIBRARIES" && !name.endsWith(".la") )
- name.append( QString::fromLatin1(".la") );
+ name.append( TQString::fromLatin1(".la") );
if ( primary == "LIBRARIES" && !name.endsWith(".a") )
- name.append ( QString::fromLatin1(".a") );
+ name.append ( TQString::fromLatin1(".a") );
- QPtrListIterator<TargetItem> it(m_subproject->targets);
+ TQPtrListIterator<TargetItem> it(m_subproject->targets);
for (; it.current(); ++it)
if (name == (*it)->name) {
KMessageBox::sorry(this, i18n("A target with this name already exists."));
return;
}
- QStringList flagslist;
+ TQStringList flagslist;
if (primary == "LTLIBRARIES") {
if (allstatic_box->isChecked())
flagslist.append("-all-static");
@@ -192,18 +192,18 @@ void AddTargetDialog::accept()
flagslist.append("-no-undefined");
}
flagslist.append(ldflagsother_edit->text());
- QString ldflags = flagslist.join( " " );
+ TQString ldflags = flagslist.join( " " );
TargetItem *titem = m_widget->createTargetItem(name, prefix, primary, false);
// m_detailsView->insertItem ( titem );
m_subproject->targets.append(titem);
- QString canonname = AutoProjectTool::canonicalize(name);
+ TQString canonname = AutoProjectTool::canonicalize(name);
- QMap<QString,QString> replaceMap;
+ TQMap<TQString,TQString> replaceMap;
if( primary == "PROGRAMS" || primary == "LIBRARIES" || primary == "LTLIBRARIES" || primary == "DATA" ){
- QString varname = prefix + "_" + primary;
+ TQString varname = prefix + "_" + primary;
m_subproject->variables[varname] += (" " + name);
replaceMap.insert(varname, m_subproject->variables[varname]);
if ( primary != "DATA" ){
@@ -215,10 +215,10 @@ void AddTargetDialog::accept()
AutoProjectTool::addToMakefileam(m_subproject->path + "/Makefile.am", replaceMap);
- QDialog::accept();
+ TQDialog::accept();
}
-void AddTargetDialog::slotFileNameChanged ( const QString& text )
+void AddTargetDialog::slotFileNameChanged ( const TQString& text )
{
canonicalLabel->setText ( AutoProjectTool::canonicalize ( text ) );
}