summaryrefslogtreecommitdiffstats
path: root/languages/lib/designer_integration
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /languages/lib/designer_integration
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'languages/lib/designer_integration')
-rw-r--r--languages/lib/designer_integration/implementationwidget.cpp26
-rw-r--r--languages/lib/designer_integration/implementationwidget.h6
-rw-r--r--languages/lib/designer_integration/implementationwidgetbase.ui2
3 files changed, 17 insertions, 17 deletions
diff --git a/languages/lib/designer_integration/implementationwidget.cpp b/languages/lib/designer_integration/implementationwidget.cpp
index c051db92..b9e193a1 100644
--- a/languages/lib/designer_integration/implementationwidget.cpp
+++ b/languages/lib/designer_integration/implementationwidget.cpp
@@ -38,23 +38,23 @@
#include <kdevlanguagesupport.h>
namespace ImplUtils{
-class ClassItem: public KListViewItem{
+class ClassItem: public TDEListViewItem{
public:
- ClassItem(KListViewItem *parent, ClassDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
- ClassItem(KListView *parent, ClassDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ ClassItem(TDEListViewItem *parent, ClassDom dom)
+ :TDEListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ ClassItem(TDEListView *parent, ClassDom dom)
+ :TDEListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
ClassDom dom() const { return m_dom; }
private:
ClassDom m_dom;
};
-class NamespaceItem: public KListViewItem{
+class NamespaceItem: public TDEListViewItem{
public:
- NamespaceItem(KListViewItem *parent, NamespaceDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
- NamespaceItem(KListView *parent, NamespaceDom dom)
- :KListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ NamespaceItem(TDEListViewItem *parent, NamespaceDom dom)
+ :TDEListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
+ NamespaceItem(TDEListView *parent, NamespaceDom dom)
+ :TDEListViewItem(parent, dom->name(), dom->fileName()), m_dom(dom) { setOpen(true); }
NamespaceDom dom() const { return m_dom; }
private:
NamespaceDom m_dom;
@@ -79,12 +79,12 @@ void ImplementationWidget::init(const TQString &formName)
m_baseClassName = DomUtil::elementByPathExt(doc, "class").text();
setCaption(i18n("Create or Select Implementation Class for: %1").arg(m_baseClassName));
- KListViewItem *item = new KListViewItem(classView, i18n("Namespaces &amp;&amp; Classes"));
+ TDEListViewItem *item = new TDEListViewItem(classView, i18n("Namespaces &amp;&amp; Classes"));
item->setOpen(true);
processNamespaces(m_part->codeModel()->globalNamespace(), item);
}
-void ImplementationWidget::processNamespaces(NamespaceDom dom, KListViewItem *parent)
+void ImplementationWidget::processNamespaces(NamespaceDom dom, TDEListViewItem *parent)
{
const NamespaceList nslist = dom->namespaceList();
for (NamespaceList::const_iterator it = nslist.begin(); it != nslist.end(); ++it)
@@ -94,7 +94,7 @@ void ImplementationWidget::processNamespaces(NamespaceDom dom, KListViewItem *pa
processClasses(*it, new ImplUtils::ClassItem(parent, *it));
}
-void ImplementationWidget::processClasses(ClassDom dom, KListViewItem *parent)
+void ImplementationWidget::processClasses(ClassDom dom, TDEListViewItem *parent)
{
const ClassList cllist = dom->classList();
for (ClassList::ConstIterator it = cllist.begin(); it != cllist.end(); ++it)
diff --git a/languages/lib/designer_integration/implementationwidget.h b/languages/lib/designer_integration/implementationwidget.h
index bae6cdff..dcdd820c 100644
--- a/languages/lib/designer_integration/implementationwidget.h
+++ b/languages/lib/designer_integration/implementationwidget.h
@@ -25,7 +25,7 @@
#include <codemodel.h>
-class KListViewItem;
+class TDEListViewItem;
class KDevLanguageSupport;
/**
@@ -61,8 +61,8 @@ protected:
the number of classes being displayed as possible implementation classes.*/
void init(const TQString &formName);
- void processNamespaces(NamespaceDom dom, KListViewItem *parent);
- void processClasses(ClassDom dom, KListViewItem *parent);
+ void processNamespaces(NamespaceDom dom, TDEListViewItem *parent);
+ void processClasses(ClassDom dom, TDEListViewItem *parent);
/**Creates a class and adds it to a project. No need to reimplement.*/
bool createClass();
diff --git a/languages/lib/designer_integration/implementationwidgetbase.ui b/languages/lib/designer_integration/implementationwidgetbase.ui
index 93969da3..8dc6c545 100644
--- a/languages/lib/designer_integration/implementationwidgetbase.ui
+++ b/languages/lib/designer_integration/implementationwidgetbase.ui
@@ -103,7 +103,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="KListView" row="4" column="0">
+ <widget class="TDEListView" row="4" column="0">
<column>
<property name="text">
<string>Class Name</string>