From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../pcsimporter/customimporter/settingsdialog.cpp | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'languages/cpp/pcsimporter/customimporter/settingsdialog.cpp') diff --git a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp index f6df0902..37f2bfef 100644 --- a/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp +++ b/languages/cpp/pcsimporter/customimporter/settingsdialog.cpp @@ -12,7 +12,7 @@ * * ***************************************************************************/ -#include +#include #include #include @@ -27,14 +27,14 @@ // should be included after possible KEditListBox redefinition #include "settingsdialog.h" -#include -#include -#include -#include +#include +#include +#include +#include #include -SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl ) +SettingsDialog::SettingsDialog( TQWidget* parent, const char* name, WFlags fl ) : SettingsDialogBase( parent, name, fl ) { KURLRequester * req = new KURLRequester( this ); @@ -45,27 +45,27 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl ) grid->addMultiCellWidget( elb, 3, 3, 0, grid->numCols() ); - // connect( dbName_edit, SIGNAL( textChanged( const QString& ) ), this, SLOT( validate() ) ); - connect( elb->addButton(), SIGNAL( clicked() ), this, SLOT( validate() ) ); - connect( elb->removeButton(), SIGNAL( clicked() ), this, SLOT( validate() ) ); - connect( elb, SIGNAL( added( const QString& ) ), this, SLOT( validateDirectory( const QString& ) ) ); + // connect( dbName_edit, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( validate() ) ); + connect( elb->addButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) ); + connect( elb->removeButton(), TQT_SIGNAL( clicked() ), this, TQT_SLOT( validate() ) ); + connect( elb, TQT_SIGNAL( added( const TQString& ) ), this, TQT_SLOT( validateDirectory( const TQString& ) ) ); } SettingsDialog::~SettingsDialog() {} -QString SettingsDialog::dbName( ) const +TQString SettingsDialog::dbName( ) const { - return QString(); + return TQString(); // return dbName_edit->text(); } -QStringList SettingsDialog::dirs( ) const +TQStringList SettingsDialog::dirs( ) const { return elb->items(); } -QString SettingsDialog::filePattern( ) const +TQString SettingsDialog::filePattern( ) const { return pattern_edit->text(); } @@ -81,19 +81,19 @@ void SettingsDialog::validate() emit enabled( elb->listBox()->count() > 0 ); } -void SettingsDialog::validateDirectory( const QString & dir ) +void SettingsDialog::validateDirectory( const TQString & dir ) { - QDir d( dir, QString::null, QDir::DefaultSort, QDir::Dirs ); + TQDir d( dir, TQString::null, TQDir::DefaultSort, TQDir::Dirs ); if ( !d.exists() ) { elb->lineEdit() ->setText( dir ); - if ( QListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) ) + if ( TQListBoxItem * item = elb->listBox() ->findItem( dir, Qt::ExactMatch ) ) { elb->listBox() ->removeItem( elb->listBox() ->index( item ) ); } - QString errormsg = QString( "%1 is not a directory" ).arg( dir ); + TQString errormsg = TQString( "%1 is not a directory" ).arg( dir ); KMessageBox::error( 0, errormsg, "Couldn't find directory" ); } emit enabled( elb->listBox()->count() > 0 ); -- cgit v1.2.1