summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/importdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/appwizard/importdlg.cpp')
-rw-r--r--parts/appwizard/importdlg.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/parts/appwizard/importdlg.cpp b/parts/appwizard/importdlg.cpp
index b2beb660..8d0ca20d 100644
--- a/parts/appwizard/importdlg.cpp
+++ b/parts/appwizard/importdlg.cpp
@@ -101,7 +101,7 @@ ImportDialog::~ImportDialog()
void ImportDialog::slotProjectNameChanged( const TQString &_text )
{
- ok_button->setEnabled( !_text.isEmpty() && !urlinput_edit->url().tqcontains( TQRegExp("\\s") ) );
+ ok_button->setEnabled( !_text.isEmpty() && !urlinput_edit->url().contains( TQRegExp("\\s") ) );
}
void ImportDialog::accept()
@@ -204,9 +204,9 @@ void ImportDialog::accept()
//
// while (!srcstream.atEnd()) {
// TQString line = srcstream.readLine();
-// line.tqreplace(TQRegExp("\\$APPNAMELC\\$"), projectName);
-// line.tqreplace(TQRegExp("\\$AUTHOR\\$"), author);
-// line.tqreplace(TQRegExp("\\$EMAIL\\$"), email);
+// line.replace(TQRegExp("\\$APPNAMELC\\$"), projectName);
+// line.replace(TQRegExp("\\$AUTHOR\\$"), author);
+// line.replace(TQRegExp("\\$EMAIL\\$"), email);
// deststream << line << endl;
// }
//
@@ -260,7 +260,7 @@ void ImportDialog::dirChanged()
if (!dir.exists())
return;
- if ( dirName.tqcontains( TQRegExp("\\s") ) )
+ if ( dirName.contains( TQRegExp("\\s") ) )
{
ok_button->setEnabled( false );
return;
@@ -290,7 +290,7 @@ void ImportDialog::dirChanged()
}
// Remove any characters from the dirName that would be invalid in a project name
- TQString projectName(dir.dirName().tqreplace(TQRegExp("[^a-zA-Z0-9_]"), "_"));
+ TQString projectName(dir.dirName().replace(TQRegExp("[^a-zA-Z0-9_]"), "_"));
// Set the project name
name_edit->setText(projectName);
@@ -339,7 +339,7 @@ void ImportDialog::scanLegacyKDevelopProject(const TQString &fileName)
name_edit->setText(config.readEntry("project_name"));
TQString legacyType = config.readEntry("project_type");
- if (TQStringList::split(",", "normal_kde,normal_kde2,kde2_normal,mdi_kde2").tqcontains(legacyType))
+ if (TQStringList::split(",", "normal_kde,normal_kde2,kde2_normal,mdi_kde2").contains(legacyType))
setProjectType("kde");
else if (legacyType == "normal_gnome")
setProjectType("gnome");