From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- buildtools/autotools/removetargetdlg.cpp | 58 ++++++++++++++++---------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'buildtools/autotools/removetargetdlg.cpp') diff --git a/buildtools/autotools/removetargetdlg.cpp b/buildtools/autotools/removetargetdlg.cpp index 6104e404..5783900c 100644 --- a/buildtools/autotools/removetargetdlg.cpp +++ b/buildtools/autotools/removetargetdlg.cpp @@ -16,14 +16,14 @@ #include "removetargetdlg.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -42,7 +42,7 @@ RemoveTargetDialog::RemoveTargetDialog( AutoProjectWidget *widget, AutoProjectPart* part, SubprojectItem *spitem, - TargetItem *titem, QWidget* parent, const char* name ) + TargetItem *titem, TQWidget* parent, const char* name ) : RemoveTargetDlgBase ( parent, name, true, 0 ) { removeLabel->setText ( i18n ( "Do you really want to remove %1
with all files that are attached to it
and all dependencies?" ).arg ( titem->name ) ); @@ -53,8 +53,8 @@ RemoveTargetDialog::RemoveTargetDialog( AutoProjectWidget *widget, AutoProjectPa else targetLabel->setText ( titem->name ); - connect ( removeButton, SIGNAL ( clicked() ), this, SLOT ( accept() ) ); - connect ( cancelButton, SIGNAL ( clicked() ), this, SLOT ( reject() ) ); + connect ( removeButton, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( accept() ) ); + connect ( cancelButton, TQT_SIGNAL ( clicked() ), this, TQT_SLOT ( reject() ) ); setIcon ( SmallIcon ( "editdelete" ) ); @@ -77,7 +77,7 @@ RemoveTargetDialog::~RemoveTargetDialog() void RemoveTargetDialog::init() { - QPtrList subprojectItems = m_widget->allSubprojectItems(); + TQPtrList subprojectItems = m_widget->allSubprojectItems(); TargetItem* titem = 0; @@ -94,7 +94,7 @@ void RemoveTargetDialog::init() if ( titem->primary == "LTLIBRARIES" || titem->primary == "PROGRAMS" || titem->primary == "LIBRARIES" || titem->primary == "JAVA" ) { - QString canonname = AutoProjectTool::canonicalize ( titem->name ); + TQString canonname = AutoProjectTool::canonicalize ( titem->name ); if ( spitem->variables[canonname + "_LIBADD"].contains ( m_titem->name ) > 0 || spitem->variables[canonname + "_LDADD"].contains ( m_titem->name ) > 0 ) @@ -118,36 +118,36 @@ void RemoveTargetDialog::accept () qApp->processEvents(); - QString canonname = AutoProjectTool::canonicalize ( m_titem->name ); - QString varname = m_titem->prefix + "_" + m_titem->primary; + TQString canonname = AutoProjectTool::canonicalize ( m_titem->name ); + TQString varname = m_titem->prefix + "_" + m_titem->primary; SubprojectItem* spitem = 0; TargetItem* titem = 0; - QMap removeMap; - QMap replaceMap; + TQMap removeMap; + TQMap replaceMap; // Remove dependencies to other targets first (stored by init() in 'dependentTargets') for ( spitem = dependentSubprojects.first(); spitem; spitem = dependentSubprojects.next() ) { for ( titem = spitem->targets.first(); titem; titem = spitem->targets.next() ) { - QString curVarname; - QString curCanonname = AutoProjectTool::canonicalize ( titem->name ); - QStringList dependencies; + TQString curVarname; + TQString curCanonname = AutoProjectTool::canonicalize ( titem->name ); + TQStringList dependencies; if ( spitem->variables[curCanonname + "_LIBADD"].contains ( m_titem->name ) ) curVarname = curCanonname + "_LIBADD"; else curVarname = curCanonname + "_LDADD"; - dependencies = QStringList::split(QRegExp("[ \t\n]"), spitem->variables[curVarname]); + dependencies = TQStringList::split(TQRegExp("[ \t\n]"), spitem->variables[curVarname]); - //QStringList::Iterator it = dependencies.begin(); + //TQStringList::Iterator it = dependencies.begin(); for ( uint i = 0; i < dependencies.size(); ++i ) { - QString s = dependencies[i]; + TQString s = dependencies[i]; if ( s.contains ( m_titem->name ) > 0 ) dependencies.remove ( s ); } @@ -178,7 +178,7 @@ void RemoveTargetDialog::accept () { // if we have bin_PROGRAMS = [target to be deleted] [other target] // delete only the [target to be deleted], not the whole line! - QStringList targets = QStringList::split(QRegExp("[ \t\n]"), m_spitem->variables[varname]); + TQStringList targets = TQStringList::split(TQRegExp("[ \t\n]"), m_spitem->variables[varname]); if ( targets.count() > 1 ) { @@ -222,7 +222,7 @@ void RemoveTargetDialog::accept () //kdDebug (9020) << "******** " << m_spitem->subdir << endl; if ( titem->primary == "PROGRAMS" || titem->primary == "LTLIBRARIES" ) { - QString curCanonname = AutoProjectTool::canonicalize ( titem->name ); + TQString curCanonname = AutoProjectTool::canonicalize ( titem->name ); if ( m_spitem->variables[curCanonname + "_LIBADD"].isEmpty() ) { @@ -241,14 +241,14 @@ void RemoveTargetDialog::accept () progressBar->setTotalSteps ( m_titem->sources.count() ); - QStringList fileList; + TQStringList fileList; for ( FileItem* fitem = m_titem->sources.first(); fitem; fitem = m_titem->sources.next() ) { if (removeCheckBox->isChecked()) { // before removing the files, check if they are mentioned in "noinst_HEADERS = blabla1.h blabla2.h" - QStringList noInstHeaders = QStringList::split ( QRegExp ( "[ \t\n]" ), m_spitem->variables["noinst_HEADERS"] ); + TQStringList noInstHeaders = TQStringList::split ( TQRegExp ( "[ \t\n]" ), m_spitem->variables["noinst_HEADERS"] ); if ( noInstHeaders.contains ( fitem->name ) ) { @@ -260,7 +260,7 @@ void RemoveTargetDialog::accept () replaceMap.clear(); } - QFile::remove(m_spitem->path + "/" + fitem->name); + TQFile::remove(m_spitem->path + "/" + fitem->name); } fileList.append ( m_spitem->path.mid ( m_part->projectDirectory().length() + 1 ) + "/" + fitem->name ); @@ -275,5 +275,5 @@ void RemoveTargetDialog::accept () m_spitem->targets.remove ( m_titem ); - QDialog::accept(); + TQDialog::accept(); } -- cgit v1.2.1