summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/addsubprojectdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/autotools/addsubprojectdlg.cpp')
-rw-r--r--buildtools/autotools/addsubprojectdlg.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/buildtools/autotools/addsubprojectdlg.cpp b/buildtools/autotools/addsubprojectdlg.cpp
index 9aeef695..bb0e5527 100644
--- a/buildtools/autotools/addsubprojectdlg.cpp
+++ b/buildtools/autotools/addsubprojectdlg.cpp
@@ -32,8 +32,8 @@
AddSubprojectDialog::AddSubprojectDialog(AutoProjectPart *part, AutoSubprojectView *view,
- SubprojectItem *item, TQWidget *parent, const char *name)
- : AddSubprojectDlgBase(parent, name, true)
+ SubprojectItem *item, TQWidget *tqparent, const char *name)
+ : AddSubprojectDlgBase(tqparent, name, true)
{
setIcon(SmallIcon("folder_new.png"));
@@ -82,31 +82,31 @@ void AddSubprojectDialog::accept()
TQFileInfo file( dir, name );
if( file.exists() && !file.isDir() ) {
- KMessageBox::sorry(this, i18n("A file named %1 already exists.").arg(name));
+ KMessageBox::sorry(this, i18n("A file named %1 already exists.").tqarg(name));
TQDialog::accept();
return;
} else if( file.isDir() ) {
if( KMessageBox::warningContinueCancel(this,
i18n("A subdirectory %1 already exists. "
- "Do you wish to add it as a subproject?").arg(name))
+ "Do you wish to add it as a subproject?").tqarg(name))
== KMessageBox::Cancel ){
TQDialog::accept();
return;
}
} else if (!dir.mkdir(name)) {
- KMessageBox::sorry(this, i18n("Could not create subdirectory %1.").arg(name));
+ KMessageBox::sorry(this, i18n("Could not create subdirectory %1.").tqarg(name));
TQDialog::accept();
return;
}
if(!dir.cd(name)) {
- KMessageBox::sorry(this, i18n("Could not access the subdirectory %1.").arg(name));
+ KMessageBox::sorry(this, i18n("Could not access the subdirectory %1.").tqarg(name));
TQDialog::accept();
return;
}
// Adjust SUBDIRS variable in containing Makefile.am
- if (m_subProject->variables["SUBDIRS"].find("$(TOPSUBDIRS)") != -1)
+ if (m_subProject->variables["SUBDIRS"].tqfind("$(TOPSUBDIRS)") != -1)
{
TQFile subdirsfile( m_subProject->path + "/subdirs" );
if ( subdirsfile.open( IO_WriteOnly | IO_Append ) )
@@ -116,7 +116,7 @@ void AddSubprojectDialog::accept()
subdirsfile.close();
}
}
- else if (m_subProject->variables["SUBDIRS"].find("$(AUTODIRS)") != -1)
+ else if (m_subProject->variables["SUBDIRS"].tqfind("$(AUTODIRS)") != -1)
{
}
else
@@ -148,7 +148,7 @@ void AddSubprojectDialog::accept()
m_subprojectView->parse( newitem );
} else {
if (!f.open(IO_WriteOnly)) {
- KMessageBox::sorry(this, i18n("Could not create Makefile.am in subdirectory %1.").arg(name));
+ KMessageBox::sorry(this, i18n("Could not create Makefile.am in subdirectory %1.").tqarg(name));
return;
}
TQTextStream stream(&f);
@@ -162,7 +162,7 @@ void AddSubprojectDialog::accept()
if ( !m_part->isKDE() ) {
TQString projroot = m_part->projectDirectory() + "/";
TQString subdirectory = dir.path();
- TQString relpath = subdirectory.replace(0, projroot.length(),"");
+ TQString relpath = subdirectory.tqreplace(0, projroot.length(),"");
TQString configureFile = m_part->getAutoConfFile(projroot);