diff options
Diffstat (limited to 'quanta/project/projectnewgeneral.cpp')
-rw-r--r-- | quanta/project/projectnewgeneral.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/quanta/project/projectnewgeneral.cpp b/quanta/project/projectnewgeneral.cpp index 28c4b611..76a98a79 100644 --- a/quanta/project/projectnewgeneral.cpp +++ b/quanta/project/projectnewgeneral.cpp @@ -39,8 +39,8 @@ #include "quantacommon.h" #include "qextfileinfo.h" -ProjectNewGeneral::ProjectNewGeneral(TQWidget *parent, const char *name ) - : ProjectNewGeneralS(parent,name) +ProjectNewGeneral::ProjectNewGeneral(TQWidget *tqparent, const char *name ) + : ProjectNewGeneralS(tqparent,name) { imagelabel->setPixmap( UserIcon("wiznewprjglb") ); linePrjName->setFocus(); @@ -137,7 +137,7 @@ void ProjectNewGeneral::slotLinePrjFile( const TQString & ) baseUrl = url; if (baseUrl.isLocalFile()) { - s = QExtFileInfo::canonicalPath(baseUrl.path()); + s = TQExtFileInfo::canonicalPath(baseUrl.path()); if (!s.isEmpty()) baseUrl.setPath(s); } @@ -149,7 +149,7 @@ void ProjectNewGeneral::slotChangeNames( const TQString &text ) { int i; TQString fname = text.lower(); - while( (i=fname.find(" ")) >=0 ) fname.remove(i,1); + while( (i=fname.tqfind(" ")) >=0 ) fname.remove(i,1); linePrjFile->setText( fname+".webprj" ); } @@ -164,7 +164,7 @@ TQString ProjectNewGeneral::type() void ProjectNewGeneral::setMargin(int i) { - layout()->setMargin(i); + tqlayout()->setMargin(i); } void ProjectNewGeneral::slotButtonTmpl() @@ -177,7 +177,7 @@ void ProjectNewGeneral::slotButtonTmpl() linePrjTmpl->setText(KURL::relativeURL(baseUrl, url)); } else { - KMessageBox::sorry(this, i18n("<qt>The project templates must be stored under the main project folder: <br><br><b>%1</b></qt>").arg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); + KMessageBox::sorry(this, i18n("<qt>The project templates must be stored under the main project folder: <br><br><b>%1</b></qt>").tqarg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); } } @@ -192,7 +192,7 @@ void ProjectNewGeneral::slotButtonToolbar() } { KMessageBox::sorry(0, i18n("<qt>The project toolbars must be stored under the main project folder: <br><br><b>%1</b></qt>") - .arg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); + .tqarg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); } } @@ -218,28 +218,28 @@ bool ProjectNewGeneral::eventFilter ( TQObject * watched, TQEvent * e ) { if (e->type() == TQEvent::FocusOut) { - if (watched == linePrjTmpl) + if (TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(linePrjTmpl)) { KURL url = baseUrl; QuantaCommon::setUrl(url, linePrjTmpl->text()); - url = QExtFileInfo::toAbsolute(url, baseUrl); + url = TQExtFileInfo::toAbsolute(url, baseUrl); if (!baseUrl.isParentOf(url)) { - KMessageBox::sorry(this,i18n("<qt>The project templates must be stored under the main project folder: <br><br><b>%1</b></qt>").arg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); + KMessageBox::sorry(this,i18n("<qt>The project templates must be stored under the main project folder: <br><br><b>%1</b></qt>").tqarg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); linePrjTmpl->setFocus(); emit enableNextButton(this, false); } else emit enableNextButton(this, true); } else - if (watched == linePrjToolbar) + if (TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(linePrjToolbar)) { KURL url = baseUrl; QuantaCommon::setUrl(url, linePrjToolbar->text()); - url = QExtFileInfo::toAbsolute(url, baseUrl); + url = TQExtFileInfo::toAbsolute(url, baseUrl); if (!baseUrl.isParentOf(url)) { KMessageBox::sorry(0,i18n("<qt>The project toolbars must be stored under the main project folder: <br><br><b>%1</b></qt>") - .arg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); + .tqarg(baseUrl.prettyURL(0, KURL::StripFileProtocol))); linePrjToolbar->setFocus(); emit enableNextButton(this, false); } else |