summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectnewgeneral.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/project/projectnewgeneral.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/projectnewgeneral.cpp')
-rw-r--r--quanta/project/projectnewgeneral.cpp26
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