6 #ifndef SWIFT_GUI_MODELS_ACTIONITEM_H
7 #define SWIFT_GUI_MODELS_ACTIONITEM_H
One single action item in a tree.
int getColumnCount() const
Number of columns.
QString getAction() const
Returns the stored action.
int getRow() const
Get row of this item.
bool hasChildren() const
Has children?
CActionItem & operator=(const CActionItem &)=delete
Not copyable.
int getChildCount() const
Number of children.
void appendChild(CActionItem *child)
Append a new child.
CActionItem * getParentItem() const
Get parent item.
CActionItem * getChildByRow(int row) const
Get child by row.
CActionItem(const CActionItem &)=delete
Not copyable.
CActionItem(const QString &action, const QString &name, CActionItem *parentItem=nullptr)
Constructor.
CActionItem * findChildByName(const QString &name) const
Find child by its name.
void setIcon(const QPixmap &icon)
Set icon.
QString getActionName() const
Get action name.
const QPixmap & getIcon() const
Icon.
~CActionItem()
Destructor.
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
Models to be used with views, mainly QTableView.