diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp')
-rw-r--r-- | languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp index 29ef96e9..a0763380 100644 --- a/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp +++ b/languages/cpp/pcsimporter/kdelibsimporter/settingsdialog.cpp @@ -22,30 +22,30 @@ #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 ) { KApplication::kApplication()->dirs()->addResourceType("include","include"); - QStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include",""); - for( QStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it ) + TQStringList kdedirs=KApplication::kApplication()->dirs()->findDirs("include",""); + for( TQStringList::Iterator it=kdedirs.begin(); it!=kdedirs.end(); ++it ) { - QString kdedir = *it; + TQString kdedir = *it; if ( !kdedir.isEmpty() && isValidKDELibsDir( kdedir ) ) if ( !kdeListBox->findItem( kdedir, ExactMatch ) ) kdeListBox->insertItem( kdedir ); @@ -53,23 +53,23 @@ SettingsDialog::SettingsDialog( QWidget* parent, const char* name, WFlags fl ) kdeUrl->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* ) { emit enabled( kdeListBox->selectedItem() != 0 ); } -bool SettingsDialog::isValidKDELibsDir( const QString & path ) const +bool SettingsDialog::isValidKDELibsDir( const TQString & path ) const { - return QFile::exists( path + "/kapplication.h" ); + return TQFile::exists( path + "/kapplication.h" ); } -QString SettingsDialog::kdeDir( ) const +TQString SettingsDialog::kdeDir( ) const { return kdeListBox->currentText(); } @@ -81,7 +81,7 @@ void SettingsDialog::addUrlButton_clicked() if ( isValidKDELibsDir( kdeUrl->url() ) ) { kdeListBox->insertItem( kdeUrl->url() ); - if ( QListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) ) + if ( TQListBoxItem * item = kdeListBox->findItem( kdeUrl->url(), ExactMatch ) ) { kdeListBox->setSelected( item, true ); } |