[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/lib/interfaces
From:       Alexander Dymo <cloudtemple () mksat ! net>
Date:       2004-06-09 23:17:12
Message-ID: 20040609231712.5BABD126C1 () office ! kde ! org
[Download RAW message or body]

CVS commit by dymo: 

Extended DocumentationItem class - added onother one constructor and allowed parent \
items to be KListViewItem's.


  M +10 -2     kdevdocumentationplugin.cpp   1.10
  M +3 -2      kdevdocumentationplugin.h   1.7


--- kdevelop/lib/interfaces/kdevdocumentationplugin.cpp  #1.9:1.10
@@ -39,5 +39,5 @@ DocumentationItem::DocumentationItem(Doc
 }
 
-DocumentationItem::DocumentationItem(DocumentationItem::Type type, DocumentationItem \
*parent, +DocumentationItem::DocumentationItem(DocumentationItem::Type type, \
KListViewItem *parent,  const QString &name)
     :KListViewItem(parent, name), m_type(type)
@@ -47,5 +47,12 @@ DocumentationItem::DocumentationItem(Doc
 
 DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView \
                *parent, 
-    DocumentationItem *after, const QString &name)
+    KListViewItem *after, const QString &name)
+    :KListViewItem(parent, after, name), m_type(type)
+{
+    init();
+}
+
+DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem * \
parent, +    KListViewItem * after, const QString & name )
     :KListViewItem(parent, after, name), m_type(type)
 {

--- kdevelop/lib/interfaces/kdevdocumentationplugin.h  #1.6:1.7
@@ -35,6 +35,7 @@ public:
 
     DocumentationItem(Type type, KListView *parent, const QString &name);
-    DocumentationItem(Type type, KListView *parent, DocumentationItem *after, const \
                QString &name);
-    DocumentationItem(Type type, DocumentationItem *parent, const QString &name);
+    DocumentationItem(Type type, KListView *parent, KListViewItem *after, const \
QString &name); +    DocumentationItem(Type type, KListViewItem *parent, const \
QString &name); +    DocumentationItem(Type type, KListViewItem *parent, \
KListViewItem *after, const QString &name);  
     virtual void setURL(const KURL &url) { m_url = url; }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic