diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/projectnewgeneral.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/projectnewgeneral.cpp')
-rw-r--r-- | quanta/project/projectnewgeneral.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
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 <qdir.h> -#include <qevent.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qcombobox.h> +#include <tqdir.h> +#include <tqevent.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqradiobutton.h> +#include <tqcombobox.h> // kde includes #include <kfiledialog.h> @@ -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; i<protocols.count(); i++ ) { KURL p; p.setProtocol(protocols[i]); - QString protocol = protocols[i]; + TQString protocol = protocols[i]; if ( KProtocolInfo::supportsWriting(p) && KProtocolInfo::supportsMakeDir(p) && KProtocolInfo::supportsDeleting(p) && @@ -67,21 +67,21 @@ ProjectNewGeneral::ProjectNewGeneral(QWidget *parent, const char *name ) linePrjTmpl->setText("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) { |