summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectnewgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/projectnewgeneral.cpp')
-rw-r--r--quanta/project/projectnewgeneral.cpp68
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)
{