diff options
Diffstat (limited to 'buildtools/autotools/addtargetdlg.cpp')
-rw-r--r-- | buildtools/autotools/addtargetdlg.cpp | 48 |
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 ) ); } |