summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/importdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit330c33ab6f97b279737bf9527c9add7bb1475450 (patch)
tree85cb998d3077ae295d65944ebb4d0189fc660ead /parts/appwizard/importdlg.cpp
parent093de0db4fea89b3f94a2359c6981f353d035eb7 (diff)
downloadtdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz
tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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");