From f78eb03afb8c9a380985d26286afc40b4c89b292 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:15:35 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- parts/partexplorer/partexplorer_plugin.cpp | 2 +- parts/partexplorer/partexplorerform.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'parts/partexplorer') diff --git a/parts/partexplorer/partexplorer_plugin.cpp b/parts/partexplorer/partexplorer_plugin.cpp index bf2c9ddc..b0bd82b1 100644 --- a/parts/partexplorer/partexplorer_plugin.cpp +++ b/parts/partexplorer/partexplorer_plugin.cpp @@ -40,7 +40,7 @@ PartExplorerPlugin::PartExplorerPlugin( TQObject *parent, const char *name, con m_widget = new PartExplorerForm( mainWindow()->main() ); // mainWindow()->embedSelectView( m_widget, i18n("PartExplorer"), i18n("Query system services")); - KAction *action = new KAction( i18n("&Part Explorer"), 0, this, TQT_SLOT(slotShowForm()), + TDEAction *action = new TDEAction( i18n("&Part Explorer"), 0, this, TQT_SLOT(slotShowForm()), actionCollection(), "show_partexplorerform" ); action->setToolTip(i18n("TDETrader query execution")); action->setWhatsThis(i18n("Part explorer

Shows a dialog for TDETrader query execution. Search your TDE documentation for more information about TDE services and TDETrader.")); diff --git a/parts/partexplorer/partexplorerform.cpp b/parts/partexplorer/partexplorerform.cpp index b7e970cf..8cff1f57 100644 --- a/parts/partexplorer/partexplorerform.cpp +++ b/parts/partexplorer/partexplorerform.cpp @@ -32,12 +32,12 @@ /////////////////////////////////////////////////////////////////////////////// namespace PartExplorer{ -class PropertyItem : public KListViewItem +class PropertyItem : public TDEListViewItem { public: - PropertyItem( KListViewItem *parent, const TQString &propertyName, + PropertyItem( TDEListViewItem *parent, const TQString &propertyName, const TQString &propertyType, const TQString &propertyValue ) - : KListViewItem( parent ) + : TDEListViewItem( parent ) { setText( 0, propertyName ); setText( 1, propertyType ); @@ -68,11 +68,11 @@ private: ResultsList* m_resultsList; }; -class ResultsList : public KListView +class ResultsList : public TDEListView { public: ResultsList( TQWidget *parent ) - : KListView( parent, "resultslist" ) + : TDEListView( parent, "resultslist" ) { this->setShowToolTips( false ); new ResultsToolTip( this ); @@ -82,7 +82,7 @@ public: void clear() { - KListView::clear(); + TDEListView::clear(); } }; @@ -197,13 +197,13 @@ void PartExplorerForm::fillServiceList( const TDETrader::OfferList &services ) this->m_resultsList->setRootIsDecorated( true ); - KListViewItem *rootItem = 0; + TDEListViewItem *rootItem = 0; TDETrader::OfferList::ConstIterator it = services.begin(); for ( ; it != services.end(); ++it ) { KService::Ptr service = (*it); - KListViewItem *serviceItem = new KListViewItem( this->m_resultsList, rootItem, service->name() ); + TDEListViewItem *serviceItem = new TDEListViewItem( this->m_resultsList, rootItem, service->name() ); TQStringList propertyNames = service->propertyNames(); for ( TQStringList::const_iterator it = propertyNames.begin(); it != propertyNames.end(); ++it ) -- cgit v1.2.1