summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/projectwizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/projectwizard.cpp')
-rw-r--r--kbabel/commonui/projectwizard.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kbabel/commonui/projectwizard.cpp b/kbabel/commonui/projectwizard.cpp
index d1202f4a..e5df7285 100644
--- a/kbabel/commonui/projectwizard.cpp
+++ b/kbabel/commonui/projectwizard.cpp
@@ -37,7 +37,7 @@
#include "kbprojectmanager.h"
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -47,19 +47,19 @@
using namespace KBabel;
-ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
+ProjectWizard::ProjectWizard(TQWidget *parent,const char *name)
: KWizard(parent,name,true)
{
_wizard = new ProjectStep1(this,"project wizard widget");
// fill the known language codes
KConfig all_languages("all_languages", true, false, "locale");
- QStringList lang_codes = KGlobal::locale()->allLanguagesTwoAlpha();
- for (QStringList::iterator it = lang_codes.begin();
+ TQStringList lang_codes = KGlobal::locale()->allLanguagesTwoAlpha();
+ for (TQStringList::iterator it = lang_codes.begin();
it != lang_codes.end(); ++it)
{
// we need untranslated entries here, because of Translation Robot!
- QString entry = (*it);
+ TQString entry = (*it);
const int i = entry.find('_');
entry.replace(0, i, entry.left(i).lower());
all_languages.setGroup(entry);
@@ -71,9 +71,9 @@ ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
}
}
- connect( _wizard->_projectName, SIGNAL(textChanged(const QString &)), this, SLOT(textChanged(const QString &)));
- connect( _wizard->_projectFile, SIGNAL(textChanged(const QString &)), this, SLOT(textChanged(const QString &)));
- connect( this, SIGNAL( helpClicked( void ) ), this, SLOT( slotHelpClicked( void ) ) );
+ connect( _wizard->_projectName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
+ connect( _wizard->_projectFile, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
+ connect( this, TQT_SIGNAL( helpClicked( void ) ), this, TQT_SLOT( slotHelpClicked( void ) ) );
addPage(_wizard, i18n("Basic Project Information"));
@@ -86,7 +86,7 @@ ProjectWizard::ProjectWizard(QWidget *parent,const char *name)
setNextEnabled (_wizard, false);
}
-QString ProjectWizard::url()
+TQString ProjectWizard::url()
{
return _wizard->_projectFile->url();
}
@@ -133,7 +133,7 @@ Project::Ptr ProjectWizard::project()
void ProjectWizard::next()
{
// check if the file exists
- QFileInfo file(url());
+ TQFileInfo file(url());
if( file.exists() )
{
@@ -145,7 +145,7 @@ void ProjectWizard::next()
KWizard::next();
}
-void ProjectWizard::textChanged(const QString &)
+void ProjectWizard::textChanged(const TQString &)
{
setNextEnabled( _wizard, !_wizard->_projectName->text().isEmpty() && !_wizard->_projectFile->url().isEmpty() );
}
@@ -153,7 +153,7 @@ void ProjectWizard::textChanged(const QString &)
Project::Ptr ProjectWizard::newProject()
{
ProjectWizard* dialog = new ProjectWizard();
- if( dialog->exec() == QDialog::Accepted )
+ if( dialog->exec() == TQDialog::Accepted )
{
Project::Ptr res = dialog->project();
delete dialog;