summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/removetargetdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/autotools/removetargetdlg.cpp')
-rw-r--r--buildtools/autotools/removetargetdlg.cpp58
1 files changed, 29 insertions, 29 deletions
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 <qapplication.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
+#include <tqapplication.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
#include <kbuttonbox.h>
#include <kdebug.h>
@@ -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 <b>%1</b><br>with <b>all files</b> that are attached to it<br>and <b>all dependencies</b>?" ).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 <SubprojectItem> subprojectItems = m_widget->allSubprojectItems();
+ TQPtrList <SubprojectItem> 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 <QString, QString> removeMap;
- QMap <QString, QString> replaceMap;
+ TQMap <TQString, TQString> removeMap;
+ TQMap <TQString, TQString> 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();
}