summaryrefslogtreecommitdiffstats
path: root/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp')
-rw-r--r--languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
index b0db10cc..2df475b7 100644
--- a/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
+++ b/languages/cpp/pcsimporter/qtimporter/settingsdialog.cpp
@@ -20,35 +20,35 @@
#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") );
+ TQStringList qtdirs;
+ qtdirs.push_back( ::getenv( "QTDIR" ) + TQString("/include") );
qtdirs.push_back( "/usr/lib/qt3/include" );
qtdirs.push_back( "/usr/lib/qt/include" );
qtdirs.push_back( "/usr/share/qt3/include" );
qtdirs.push_back( "/usr/qt/3/include" ); // gentoo style
- 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 );
@@ -56,13 +56,13 @@ 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* )
+void SettingsDialog::slotSelectionChanged( TQListBoxItem* )
{
if ( !qtListBox->selectedItem() )
{
@@ -70,11 +70,11 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
return ;
}
- QDir dir( qtDir() );
- QStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
+ TQDir dir( qtDir() );
+ TQStringList qconfigFileList = dir.entryList( "qconfig-*.h" );
qtConfiguration->clear();
- QRegExp rx( "qconfig-(\\w+)\\.h" );
- for ( QStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
+ TQRegExp rx( "qconfig-(\\w+)\\.h" );
+ for ( TQStringList::Iterator it = qconfigFileList.begin(); it != qconfigFileList.end(); ++it )
{
( void ) rx.exactMatch( *it );
qtConfiguration->insertItem( rx.cap( 1 ) );
@@ -83,17 +83,17 @@ void SettingsDialog::slotSelectionChanged( QListBoxItem* )
emit enabled( true );
}
-bool SettingsDialog::isValidQtDir( const QString & path ) const
+bool SettingsDialog::isValidQtDir( const TQString & path ) const
{
- return QFile::exists( path + "/qt.h" );
+ return TQFile::exists( path + "/tqt.h" );
}
-QString SettingsDialog::qtDir( ) const
+TQString SettingsDialog::qtDir( ) const
{
return qtListBox->currentText();
}
-QString SettingsDialog::configuration( ) const
+TQString SettingsDialog::configuration( ) const
{
return qtConfiguration->currentText();
}
@@ -104,7 +104,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 );
}