diff options
Diffstat (limited to 'src/pluginselectdialog.cpp')
-rw-r--r-- | src/pluginselectdialog.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/pluginselectdialog.cpp b/src/pluginselectdialog.cpp index de4a9e1e..0863791c 100644 --- a/src/pluginselectdialog.cpp +++ b/src/pluginselectdialog.cpp @@ -9,10 +9,10 @@ * * ***************************************************************************/ -#include <qlistview.h> -#include <qheader.h> -#include <qlabel.h> -#include <qregexp.h> +#include <tqlistview.h> +#include <tqheader.h> +#include <tqlabel.h> +#include <tqregexp.h> #include <kdebug.h> #include <kapplication.h> @@ -27,32 +27,32 @@ class PluginItem : public QCheckListItem { public: // name - "Name", label - "GenericName", info - "Comment" - PluginItem( QListView * parent, QString const & name, QString const & label, - QString const & info, QString const url = QString::null ) - : QCheckListItem( parent, label, QCheckListItem::CheckBox), + PluginItem( TQListView * parent, TQString const & name, TQString const & label, + TQString const & info, TQString const url = TQString::null ) + : TQCheckListItem( parent, label, TQCheckListItem::CheckBox), _name( name ), _info( info ), _url( url ) {} - QString info() { return _info; } - QString name() { return _name; } - QString url() { return _url; } + TQString info() { return _info; } + TQString name() { return _name; } + TQString url() { return _url; } private: - QString _name; - QString _info; - QString _url; + TQString _name; + TQString _info; + TQString _url; }; -PluginSelectDialog::PluginSelectDialog(QWidget* parent, const char* name, bool modal, WFlags fl ) +PluginSelectDialog::PluginSelectDialog(TQWidget* parent, const char* name, bool modal, WFlags fl ) : PluginSelectDialogBase( parent,name, modal,fl ) { - plugin_list->setResizeMode( QListView::LastColumn ); + plugin_list->setResizeMode( TQListView::LastColumn ); plugin_list->addColumn(""); plugin_list->header()->hide(); - connect( plugin_list, SIGNAL( selectionChanged( QListViewItem * ) ), this, SLOT( itemSelected( QListViewItem * ) ) ); - connect( urllabel, SIGNAL( leftClickedURL( const QString & ) ), this, SLOT( openURL( const QString & ) ) ); + connect( plugin_list, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, TQT_SLOT( itemSelected( TQListViewItem * ) ) ); + connect( urllabel, TQT_SIGNAL( leftClickedURL( const TQString & ) ), this, TQT_SLOT( openURL( const TQString & ) ) ); init(); } @@ -70,7 +70,7 @@ void PluginSelectDialog::saveAsDefault() profile->clearList( Profile::ExplicitDisable ); - QListViewItemIterator it( plugin_list ); + TQListViewItemIterator it( plugin_list ); while ( it.current() ) { PluginItem * item = static_cast<PluginItem*>( it.current() ); @@ -84,12 +84,12 @@ void PluginSelectDialog::saveAsDefault() profile->save(); } -void PluginSelectDialog::openURL( const QString & url ) +void PluginSelectDialog::openURL( const TQString & url ) { kapp->invokeBrowser( url ); } -void PluginSelectDialog::itemSelected( QListViewItem * item ) +void PluginSelectDialog::itemSelected( TQListViewItem * item ) { if ( ! item ) return; @@ -109,9 +109,9 @@ void PluginSelectDialog::itemSelected( QListViewItem * item ) void PluginSelectDialog::init( ) { - const QValueList<KDevPlugin*> loadedPlugins = PluginController::getInstance()->loadedPlugins(); - QStringList loadedPluginDesktopNames; - QValueList<KDevPlugin*>::ConstIterator it = loadedPlugins.begin(); + const TQValueList<KDevPlugin*> loadedPlugins = PluginController::getInstance()->loadedPlugins(); + TQStringList loadedPluginDesktopNames; + TQValueList<KDevPlugin*>::ConstIterator it = loadedPlugins.begin(); while( it != loadedPlugins.end() ) { loadedPluginDesktopNames << (*it)->instance()->instanceName(); @@ -134,12 +134,12 @@ void PluginSelectDialog::init( ) for (KTrader::OfferList::ConstIterator it = offers.begin(); it != offers.end(); ++it) { // parse out any existing url to make it clickable - QString Comment = (*it)->comment(); - QRegExp re("\\bhttp://[\\S]*"); + TQString Comment = (*it)->comment(); + TQRegExp re("\\bhttp://[\\S]*"); re.search( Comment ); Comment.replace( re, "" ); - QString url; + TQString url; if ( re.pos() > -1 ) { url = re.cap(); @@ -151,17 +151,17 @@ void PluginSelectDialog::init( ) kdDebug(9000) << (*it)->desktopEntryName() << " : " << (loadedPluginDesktopNames.contains( (*it)->desktopEntryName() ) ? "YES" : "NO" ) << endl; } - QListViewItem * first = plugin_list->firstChild(); + TQListViewItem * first = plugin_list->firstChild(); if ( first ) { plugin_list->setSelected( first, true ); } } -QStringList PluginSelectDialog::unselectedPluginNames( ) +TQStringList PluginSelectDialog::unselectedPluginNames( ) { - QStringList unselectedPlugins; - QListViewItem * item = plugin_list->firstChild(); + TQStringList unselectedPlugins; + TQListViewItem * item = plugin_list->firstChild(); while ( item ) { PluginItem * pluginItem = static_cast<PluginItem*>( item ); |