liblancelot
StandardActionTreeModel.cpp
Go to the documentation of this file.
172 void StandardActionTreeModel::add(const QString & title, const QString & description, QIcon icon, const QVariant & data, Item * parent)
186 void StandardActionTreeModel::set(int index, const QString & title, const QString & description, QIcon icon, const QVariant & data, Item * parent)
Item(QString itemTitle=QString(), QString itemDescription=QString(), QIcon itemIcon=QIcon(), QVariant itemData=QVariant())
Definition: StandardActionTreeModel.cpp:34
void removeAt(int index, Item *parent=NULL)
Removes an item.
Definition: StandardActionTreeModel.cpp:191
const QObjectList & children() const
L_Override QString title(int index) const
Definition: StandardActionTreeModel.cpp:124
Item * root() const
Definition: StandardActionTreeModel.cpp:72
L_Override QIcon icon(int index) const
Definition: StandardActionTreeModel.cpp:142
QList< Item * > children
Definition: StandardActionTreeModel.h:49
virtual StandardActionTreeModel * createChild(int index)=0
L_Override ActionTreeModel * child(int index)
Definition: StandardActionTreeModel.cpp:77
QVariant data(int index) const
Definition: StandardActionTreeModel.cpp:151
This class represents an item in the list model.
Definition: StandardActionTreeModel.h:35
void add(Item *item, Item *parent=NULL)
Adds a new item into the model.
Definition: StandardActionTreeModel.cpp:165
L_Override int size() const
Definition: StandardActionTreeModel.cpp:160
L_Override bool isCategory(int index) const
Definition: StandardActionTreeModel.cpp:97
Definition: ActionTreeModel.h:30
L_Override QIcon selfIcon() const
Definition: StandardActionTreeModel.cpp:119
StandardActionTreeModel()
Definition: StandardActionTreeModel.cpp:45
virtual ~StandardActionTreeModel()
Definition: StandardActionTreeModel.cpp:63
void set(int index, Item *item, Item *parent=NULL)
Replaces existing item at specified index with a new one.
Definition: StandardActionTreeModel.cpp:177
Item * itemAt(int index, Item *parent=NULL)
Definition: StandardActionTreeModel.cpp:203
L_Override QString selfTitle() const
Definition: StandardActionTreeModel.cpp:114
L_Override QString description(int index) const
Definition: StandardActionTreeModel.cpp:133
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.