diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/php/phpnewclassdlg.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/php/phpnewclassdlg.cpp')
-rw-r--r-- | languages/php/phpnewclassdlg.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/languages/php/phpnewclassdlg.cpp b/languages/php/phpnewclassdlg.cpp index 282e6c01..9227e8ff 100644 --- a/languages/php/phpnewclassdlg.cpp +++ b/languages/php/phpnewclassdlg.cpp @@ -30,7 +30,7 @@ using namespace std; -PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent, const char *name) : PHPNewClassDlgBase(parent,name,true) { +PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *tqparent, const char *name) : PHPNewClassDlgBase(tqparent,name,true) { m_filenameModified = false; KCompletion *comp = new KCompletion(); comp->setItems(baseClassNames); @@ -104,14 +104,14 @@ void PHPNewClassDlg::accept(){ // generate the sourcecode for the class if(m_baseClassEdit->text().isEmpty()){ - text = text.replace(TQRegExp("extends BASECLASS"),""); - text = text.replace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),""); + text = text.tqreplace(TQRegExp("extends BASECLASS"),""); + text = text.tqreplace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),""); }else{ - text = text.replace(TQRegExp("BASECLASS"),m_baseClassEdit->text()); + text = text.tqreplace(TQRegExp("BASECLASS"),m_baseClassEdit->text()); } - text = text.replace(TQRegExp("CLASSNAME"),m_classNameEdit->text()); - text = text.replace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper()); - text = text.replace(TQRegExp("AUTHOR"),"not implemented"); + text = text.tqreplace(TQRegExp("CLASSNAME"),m_classNameEdit->text()); + text = text.tqreplace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper()); + text = text.tqreplace(TQRegExp("AUTHOR"),"not implemented"); file.setName(absFileName); if(file.open(IO_WriteOnly)){ |