From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/project/projectnewgeneral.cpp | 68 ++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'quanta/project/projectnewgeneral.cpp') diff --git a/quanta/project/projectnewgeneral.cpp b/quanta/project/projectnewgeneral.cpp index 3f5fe547..28c4b611 100644 --- a/quanta/project/projectnewgeneral.cpp +++ b/quanta/project/projectnewgeneral.cpp @@ -16,14 +16,14 @@ ***************************************************************************/ // qt includes -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include // kde includes #include @@ -39,19 +39,19 @@ #include "quantacommon.h" #include "qextfileinfo.h" -ProjectNewGeneral::ProjectNewGeneral(QWidget *parent, const char *name ) +ProjectNewGeneral::ProjectNewGeneral(TQWidget *parent, const char *name ) : ProjectNewGeneralS(parent,name) { imagelabel->setPixmap( UserIcon("wiznewprjglb") ); linePrjName->setFocus(); - QStringList protocols = KProtocolInfo::protocols(); + TQStringList protocols = KProtocolInfo::protocols(); protocols.sort(); for ( uint i=0; isetText("templates"); linePrjToolbar->setText("toolbars"); - connect(comboProtocol, SIGNAL(activated(const QString&)), SLOT(slotProtocolChanged(const QString &))); - connect( linePrjFile, SIGNAL(textChanged(const QString &)), - this, SLOT(slotLinePrjFile(const QString &))); - connect( linePrjName, SIGNAL(textChanged(const QString &)), - this, SLOT(slotLinePrjFile(const QString &))); - connect( linePrjDir, SIGNAL(textChanged(const QString &)), - this, SLOT(slotLinePrjFile(const QString &))); - connect( buttonDir, SIGNAL(clicked()), - this, SLOT(slotButtonDir())); - connect( linePrjName, SIGNAL(textChanged(const QString &)), - this, SLOT(slotChangeNames(const QString &))); - connect( linePrjTmpl, SIGNAL(textChanged(const QString &)), SLOT(slotLinePrjFile(const QString &))); - connect( buttonTmpl, SIGNAL(clicked()), SLOT(slotButtonTmpl())); - connect( linePrjToolbar, SIGNAL(textChanged(const QString &)), SLOT(slotLinePrjFile(const QString &))); - connect( buttonToolbar, SIGNAL(clicked()), SLOT(slotButtonToolbar())); + connect(comboProtocol, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotProtocolChanged(const TQString &))); + connect( linePrjFile, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotLinePrjFile(const TQString &))); + connect( linePrjName, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotLinePrjFile(const TQString &))); + connect( linePrjDir, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotLinePrjFile(const TQString &))); + connect( buttonDir, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotButtonDir())); + connect( linePrjName, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotChangeNames(const TQString &))); + connect( linePrjTmpl, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotLinePrjFile(const TQString &))); + connect( buttonTmpl, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonTmpl())); + connect( linePrjToolbar, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(slotLinePrjFile(const TQString &))); + connect( buttonToolbar, TQT_SIGNAL(clicked()), TQT_SLOT(slotButtonToolbar())); linePrjTmpl->installEventFilter(this); linePrjToolbar->installEventFilter(this); @@ -101,7 +101,7 @@ void ProjectNewGeneral::slotButtonDir() } } -void ProjectNewGeneral::slotLinePrjFile( const QString & ) +void ProjectNewGeneral::slotLinePrjFile( const TQString & ) { bool valid = !(linePrjFile->text().isEmpty() || @@ -110,7 +110,7 @@ void ProjectNewGeneral::slotLinePrjFile( const QString & ) linePrjTmpl->text().isEmpty() || linePrjToolbar->text().isEmpty()); KURL url; - QString s = lineHost->text(); + TQString s = lineHost->text(); if (! s.isEmpty()) url.setHost(s); @@ -145,16 +145,16 @@ void ProjectNewGeneral::slotLinePrjFile( const QString & ) emit enableNextButton( this, valid ); } -void ProjectNewGeneral::slotChangeNames( const QString &text ) +void ProjectNewGeneral::slotChangeNames( const TQString &text ) { int i; - QString fname = text.lower(); + TQString fname = text.lower(); while( (i=fname.find(" ")) >=0 ) fname.remove(i,1); linePrjFile->setText( fname+".webprj" ); } -QString ProjectNewGeneral::type() +TQString ProjectNewGeneral::type() { // if ( radioCvs ->isChecked() ) return "CVS"; if ( radioLocal->isChecked() ) return "Local"; @@ -197,7 +197,7 @@ void ProjectNewGeneral::slotButtonToolbar() } -void ProjectNewGeneral::slotProtocolChanged(const QString& protocol) +void ProjectNewGeneral::slotProtocolChanged(const TQString& protocol) { bool status = true; if (protocol == i18n("Local")) @@ -214,9 +214,9 @@ void ProjectNewGeneral::slotProtocolChanged(const QString& protocol) lineHost->clear(); } -bool ProjectNewGeneral::eventFilter ( QObject * watched, QEvent * e ) +bool ProjectNewGeneral::eventFilter ( TQObject * watched, TQEvent * e ) { - if (e->type() == QEvent::FocusOut) + if (e->type() == TQEvent::FocusOut) { if (watched == linePrjTmpl) { -- cgit v1.2.1