• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/debugger

  • KDevelop
  • TreeItem
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KDevelop::TreeItem Class Referenceabstract

#include <treeitem.h>

Inheritance diagram for KDevelop::TreeItem:
Inheritance graph
[legend]

Signals

void allChildrenFetched ()
 
void collapsed ()
 
void expanded ()
 

Public Member Functions

 ~TreeItem () override
 
void emitAllChildrenFetched ()
 
virtual void fetchMoreChildren ()=0
 
virtual void setColumn (int index, const QVariant &data)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Protected Member Functions

 TreeItem (TreeModel *model, TreeItem *parent=nullptr)
 
void appendChild (TreeItem *child, bool initial=false)
 
TreeItem * child (int row)
 
int childCount () const
 
void clear ()
 
virtual void clicked ()
 
int columnCount () const
 
virtual QVariant data (int column, int role) const
 
void deleteChildren ()
 
bool hasMore () const
 
virtual QVariant icon (int column) const
 
void insertChild (int position, TreeItem *child, bool initial=false)
 
bool isExpanded () const
 
TreeModel * model ()
 
TreeItem * parent ()
 
void removeChild (int index)
 
void removeSelf ()
 
void reportChange ()
 
void reportChange (int column)
 
int row () const
 
void setData (const QVector< QVariant > &data)
 
void setExpanded (bool b)
 
void setHasMore (bool more)
 
void setHasMoreInitial (bool more)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

QVector< TreeItem * > childItems
 
TreeItem * ellipsis_
 
bool expanded_
 
QVector< QVariant > itemData
 
TreeModel * model_
 
bool more_
 
TreeItem * parentItem
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 37 of file treeitem.h.

Constructor & Destructor Documentation

◆ ~TreeItem()

TreeItem::~TreeItem ( )
override

Definition at line 37 of file treeitem.cpp.

◆ TreeItem()

TreeItem::TreeItem ( TreeModel *  model,
TreeItem *  parent = nullptr 
)
explicitprotected

Creates a tree item with the specified data.


FIXME: do we actually have to have the model pointer.

Definition at line 31 of file treeitem.cpp.

Member Function Documentation

◆ allChildrenFetched

void KDevelop::TreeItem::allChildrenFetched ( )
signal

◆ appendChild()

void TreeItem::appendChild ( TreeItem *  child,
bool  initial = false 
)
protected

Adds a new child and notifies the interested parties.


Clears the "hasMore" flag.

Definition at line 51 of file treeitem.cpp.

◆ child()

TreeItem * TreeItem::child ( int  row)
protected

Definition at line 142 of file treeitem.cpp.

◆ childCount()

int TreeItem::childCount ( ) const
protected

Definition at line 153 of file treeitem.cpp.

◆ clear()

void TreeItem::clear ( )
protected

Clears all children.


Definition at line 128 of file treeitem.cpp.

◆ clicked()

virtual void KDevelop::TreeItem::clicked ( )
inlineprotectedvirtual

Definition at line 111 of file treeitem.h.

◆ collapsed

void KDevelop::TreeItem::collapsed ( )
signal

◆ columnCount()

int TreeItem::columnCount ( ) const
protected

Definition at line 158 of file treeitem.cpp.

◆ data()

QVariant TreeItem::data ( int  column,
int  role 
) const
protectedvirtual

Definition at line 163 of file treeitem.cpp.

◆ deleteChildren()

void TreeItem::deleteChildren ( )
protected

Definition at line 118 of file treeitem.cpp.

◆ emitAllChildrenFetched()

void TreeItem::emitAllChildrenFetched ( )

Definition at line 235 of file treeitem.cpp.

◆ expanded

void KDevelop::TreeItem::expanded ( )
signal

◆ fetchMoreChildren()

virtual void KDevelop::TreeItem::fetchMoreChildren ( )
pure virtual

Fetches more children, and adds them by calling appendChild.

The amount of children to fetch is up to the implementation. After fetching, should call setHasMore.

Implemented in KDevelop::VariablesRoot, and KDevelop::TooltipRoot.

◆ hasMore()

bool KDevelop::TreeItem::hasMore ( ) const
inlineprotected

Definition at line 108 of file treeitem.h.

◆ icon()

QVariant KDevelop::TreeItem::icon ( int  column) const
protectedvirtual

Definition at line 250 of file treeitem.cpp.

◆ insertChild()

void TreeItem::insertChild ( int  position,
TreeItem *  child,
bool  initial = false 
)
protected

Definition at line 78 of file treeitem.cpp.

◆ isExpanded()

bool KDevelop::TreeItem::isExpanded ( ) const
inlineprotected

Definition at line 92 of file treeitem.h.

◆ model()

TreeModel* KDevelop::TreeItem::model ( )
inlineprotected

Definition at line 90 of file treeitem.h.

◆ parent()

TreeItem * TreeItem::parent ( )
protected

Definition at line 172 of file treeitem.cpp.

◆ removeChild()

void TreeItem::removeChild ( int  index)
protected

Definition at line 103 of file treeitem.cpp.

◆ removeSelf()

void TreeItem::removeSelf ( )
protected

Definition at line 112 of file treeitem.cpp.

◆ reportChange() [1/2]

void TreeItem::reportChange ( )
protected

Report change in data of this item.


Definition at line 89 of file treeitem.cpp.

◆ reportChange() [2/2]

void KDevelop::TreeItem::reportChange ( int  column)
protected

Definition at line 96 of file treeitem.cpp.

◆ row()

int TreeItem::row ( ) const
protected

Definition at line 177 of file treeitem.cpp.

◆ setColumn()

virtual void KDevelop::TreeItem::setColumn ( int  index,
const QVariant &  data 
)
inlinevirtual

Definition at line 51 of file treeitem.h.

◆ setData()

void TreeItem::setData ( const QVector< QVariant > &  data)
protected

Set the data to be shown for the item itself.


Definition at line 46 of file treeitem.cpp.

◆ setExpanded()

void KDevelop::TreeItem::setExpanded ( bool  b)
protected

Definition at line 256 of file treeitem.cpp.

◆ setHasMore()

void TreeItem::setHasMore ( bool  more)
protected

Sets a flag that tells if we have some more children that are not fetched yet.


Definition at line 212 of file treeitem.cpp.

◆ setHasMoreInitial()

void TreeItem::setHasMoreInitial ( bool  more)
protected

Definition at line 240 of file treeitem.cpp.

Member Data Documentation

◆ childItems

QVector<TreeItem*> KDevelop::TreeItem::childItems
protected

Definition at line 115 of file treeitem.h.

◆ ellipsis_

TreeItem* KDevelop::TreeItem::ellipsis_
protected

Definition at line 120 of file treeitem.h.

◆ expanded_

bool KDevelop::TreeItem::expanded_
protected

Definition at line 121 of file treeitem.h.

◆ itemData

QVector<QVariant> KDevelop::TreeItem::itemData
protected

Definition at line 116 of file treeitem.h.

◆ model_

TreeModel* KDevelop::TreeItem::model_
protected

Definition at line 118 of file treeitem.h.

◆ more_

bool KDevelop::TreeItem::more_
protected

Definition at line 119 of file treeitem.h.

◆ parentItem

TreeItem* KDevelop::TreeItem::parentItem
protected

Definition at line 117 of file treeitem.h.


The documentation for this class was generated from the following files:
  • treeitem.h
  • treeitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:28:59 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/debugger

Skip menu "kdevplatform/debugger"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal