summaryrefslogtreecommitdiffstats
path: root/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp')
-rw-r--r--languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
index cc59c6e9..755b14c4 100644
--- a/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qt4importer/settingsdialog.cpp
@@ -20,34 +20,34 @@
#include <kmessagebox.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <cstdlib>
#include "settingsdialog.h"
-QListBoxItem* QListBox_selectedItem(QListBox* cpQListBox)
+TQListBoxItem* QListBox_selectedItem(TQListBox* cpQListBox)
{
- if ( cpQListBox->selectionMode() != QListBox::Single )
+ if ( cpQListBox->selectionMode() != TQListBox::Single )
return 0;
if ( cpQListBox->isSelected( cpQListBox->currentItem() ) )
return cpQListBox->item(cpQListBox->currentItem());
return 0;
}
-SettingsDialog::SettingsDialog(QWidget* parent, const char* name, WFlags fl)
+SettingsDialog::SettingsDialog(TQWidget* parent, const char* name, WFlags fl)
: SettingsDialogBase(parent,name,fl)
{
- QStringList qtdirs;
- qtdirs.push_back( ::getenv("QTDIR") + QString("/include") );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
- qtdirs.push_back( QString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv("QTDIR") + TQString("/include") );
+ qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt/include" );
+ qtdirs.push_back( TQString::fromLocal8Bit(::getenv("HOME")) + "/dev/qt-main/include" );
qtdirs.push_back( "/usr/qt/4/include" );
- for( QStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
+ for( TQStringList::Iterator it=qtdirs.begin(); it!=qtdirs.end(); ++it )
{
- QString qtdir = *it;
+ TQString qtdir = *it;
if( !qtdir.isEmpty() && isValidQtDir(qtdir) )
if (!qtListBox->findItem(qtdir, ExactMatch))
qtListBox->insertItem( qtdir );
@@ -55,14 +55,14 @@ SettingsDialog::SettingsDialog(QWidget* parent, const char* name, WFlags fl)
qtUrl->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- connect( addUrlButton, SIGNAL(clicked()), this, SLOT(addUrlButton_clicked()) );
+ connect( addUrlButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addUrlButton_clicked()) );
}
SettingsDialog::~SettingsDialog()
{
}
-void SettingsDialog::slotSelectionChanged(QListBoxItem* item)
+void SettingsDialog::slotSelectionChanged(TQListBoxItem* item)
{
if( !qtListBox->selectedItem() )
{
@@ -74,17 +74,17 @@ void SettingsDialog::slotSelectionChanged(QListBoxItem* item)
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/QtCore/QtCore" );
+ return TQFile::exists( path + "/QtCore/QtCore" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return "";
}
@@ -96,7 +96,7 @@ void SettingsDialog::addUrlButton_clicked( )
if ( isValidQtDir( qtUrl->url() ) )
{
qtListBox->insertItem( qtUrl->url() );
- if ( QListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
+ if ( TQListBoxItem * item = qtListBox->findItem( qtUrl->url(), ExactMatch ) )
{
qtListBox->setSelected( item, true );
}