From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/pluginselectdialog.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/pluginselectdialog.cpp') diff --git a/src/pluginselectdialog.cpp b/src/pluginselectdialog.cpp index 0863791c..18eef37d 100644 --- a/src/pluginselectdialog.cpp +++ b/src/pluginselectdialog.cpp @@ -23,13 +23,13 @@ #include "plugincontroller.h" #include "pluginselectdialog.h" -class PluginItem : public QCheckListItem +class PluginItem : public TQCheckListItem { public: // name - "Name", label - "GenericName", info - "Comment" - PluginItem( TQListView * parent, TQString const & name, TQString const & label, - TQString const & info, TQString const url = TQString::null ) - : TQCheckListItem( parent, label, TQCheckListItem::CheckBox), + PluginItem( TQListView * tqparent, TQString const & name, TQString const & label, + TQString const & info, TQString const url = TQString() ) + : TQCheckListItem( tqparent, label, TQCheckListItem::CheckBox), _name( name ), _info( info ), _url( url ) {} @@ -44,8 +44,8 @@ private: }; -PluginSelectDialog::PluginSelectDialog(TQWidget* parent, const char* name, bool modal, WFlags fl ) - : PluginSelectDialogBase( parent,name, modal,fl ) +PluginSelectDialog::PluginSelectDialog(TQWidget* tqparent, const char* name, bool modal, WFlags fl ) + : PluginSelectDialogBase( tqparent,name, modal,fl ) { plugin_list->setResizeMode( TQListView::LastColumn ); plugin_list->addColumn(""); @@ -137,7 +137,7 @@ void PluginSelectDialog::init( ) TQString Comment = (*it)->comment(); TQRegExp re("\\bhttp://[\\S]*"); re.search( Comment ); - Comment.replace( re, "" ); + Comment.tqreplace( re, "" ); TQString url; if ( re.pos() > -1 ) @@ -146,9 +146,9 @@ void PluginSelectDialog::init( ) } PluginItem *item = new PluginItem( plugin_list, (*it)->desktopEntryName(), (*it)->genericName(), Comment, url ); - item->setOn( loadedPluginDesktopNames.contains( (*it)->desktopEntryName() ) ); + item->setOn( loadedPluginDesktopNames.tqcontains( (*it)->desktopEntryName() ) ); - kdDebug(9000) << (*it)->desktopEntryName() << " : " << (loadedPluginDesktopNames.contains( (*it)->desktopEntryName() ) ? "YES" : "NO" ) << endl; + kdDebug(9000) << (*it)->desktopEntryName() << " : " << (loadedPluginDesktopNames.tqcontains( (*it)->desktopEntryName() ) ? "YES" : "NO" ) << endl; } TQListViewItem * first = plugin_list->firstChild(); -- cgit v1.2.3