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 --- .../interfaces/kdevdocumentationplugin.cpp | 36 +++++++++++----------- .../interfaces/kdevdocumentationplugin.h | 30 +++++++++--------- 2 files changed, 33 insertions(+), 33 deletions(-) (limited to 'parts/documentation/interfaces') diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp index 6c6805e1..5aee560e 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp +++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp @@ -33,30 +33,30 @@ //class DocumentationItem -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent, +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListView *parent, const TQString &name) - :KListViewItem(parent, name), m_type(type) + :TDEListViewItem(parent, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem *parent, +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListViewItem *parent, const TQString &name) - :KListViewItem(parent, name), m_type(type) + :TDEListViewItem(parent, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent, - KListViewItem *after, const TQString &name) - :KListViewItem(parent, after, name), m_type(type) +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListView *parent, + TDEListViewItem *after, const TQString &name) + :TDEListViewItem(parent, after, name), m_type(type) { init(); } -DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem * parent, - KListViewItem * after, const TQString & name ) - :KListViewItem(parent, after, name), m_type(type) +DocumentationItem::DocumentationItem(DocumentationItem::Type type, TDEListViewItem * parent, + TDEListViewItem * after, const TQString & name ) + :TDEListViewItem(parent, after, name), m_type(type) { init(); } @@ -90,7 +90,7 @@ void DocumentationItem::init( ) DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin, - KListView *parent, const TQString &name) + TDEListView *parent, const TQString &name) :DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin), isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false) { @@ -400,7 +400,7 @@ void DocumentationPlugin::addCatalog(DocumentationCatalogItem *item) // indexes[item] = TQValueList(); } -void DocumentationPlugin::addCatalogConfiguration(KListView *configurationView, +void DocumentationPlugin::addCatalogConfiguration(TDEListView *configurationView, const TQString &title, const TQString &url) { new ConfigurationItem(configurationView, this, title, url, @@ -440,7 +440,7 @@ void DocumentationPlugin::loadIndex(IndexBox *index, DocumentationCatalogItem *i cacheIndex(item); } -void DocumentationPlugin::init(KListView *contents) +void DocumentationPlugin::init(TDEListView *contents) { config->setGroup("Locations"); TQMap entryMap = config->entryMap("Locations"); @@ -453,7 +453,7 @@ void DocumentationPlugin::init(KListView *contents) } } -void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringList restrictions) +void DocumentationPlugin::reinit(TDEListView *contents, IndexBox *index, TQStringList restrictions) { config->setGroup("Locations"); TQMap entryMap = config->entryMap("Locations"); @@ -504,7 +504,7 @@ void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringL } } -void DocumentationPlugin::loadCatalogConfiguration(KListView *configurationView) +void DocumentationPlugin::loadCatalogConfiguration(TDEListView *configurationView) { config->setGroup("Locations"); TQMap entryMap = config->entryMap("Locations"); @@ -529,7 +529,7 @@ void DocumentationPlugin::loadCatalogConfiguration(KListView *configurationView) } } -void DocumentationPlugin::saveCatalogConfiguration(KListView *configurationView) +void DocumentationPlugin::saveCatalogConfiguration(TDEListView *configurationView) { config->setGroup("Locations"); @@ -614,7 +614,7 @@ void DocumentationPlugin::setCatalogEnabled(const TQString &name, bool e) //class IndexBox IndexBox::IndexBox(TQWidget *parent, const char *name) - :KListBox(parent, name), m_dirty(false) + :TDEListBox(parent, name), m_dirty(false) { } @@ -676,7 +676,7 @@ ProjectDocumentationPlugin::~ProjectDocumentationPlugin() deinit(); } -void ProjectDocumentationPlugin::init(KListView *contents, IndexBox *index, const TQString &url) +void ProjectDocumentationPlugin::init(TDEListView *contents, IndexBox *index, const TQString &url) { m_contents = contents; m_index = index; diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h index 9c61e208..e5e71ca2 100644 --- a/parts/documentation/interfaces/kdevdocumentationplugin.h +++ b/parts/documentation/interfaces/kdevdocumentationplugin.h @@ -32,7 +32,7 @@ /**Documentation list item. Stores the type of a documentation it represents and an URL.*/ -class DocumentationItem: public KListViewItem +class DocumentationItem: public TDEListViewItem { public: /**Type of documentation which is represented by this item.*/ @@ -43,10 +43,10 @@ public: Document /**