swift
|
One single action item in a tree. More...
Public Member Functions | |
CActionItem (const QString &action, const QString &name, CActionItem *parentItem=nullptr) | |
Constructor. | |
CActionItem (const QString &action, const QString &name, const QPixmap &icon, CActionItem *parentItem=nullptr) | |
Constructor. | |
CActionItem (const QString &action, const QString &name, swift::misc::CIcons::IconIndex icon, CActionItem *parentItem=nullptr) | |
Constructor. | |
~CActionItem () | |
Destructor. | |
void | appendChild (CActionItem *child) |
Append a new child. | |
CActionItem * | findChildByName (const QString &name) const |
Find child by its name. | |
CActionItem * | getChildByRow (int row) const |
Get child by row. | |
int | getChildCount () const |
Number of children. | |
const QPixmap & | getIcon () const |
Icon. | |
void | setIcon (const QPixmap &icon) |
Set icon. | |
bool | hasChildren () const |
Has children? | |
int | getColumnCount () const |
Number of columns. | |
QString | getAction () const |
Returns the stored action. | |
QString | getActionName () const |
Get action name. | |
int | getRow () const |
Get row of this item. | |
CActionItem * | getParentItem () const |
Get parent item. | |
CActionItem (const CActionItem &)=delete | |
Not copyable. | |
CActionItem & | operator= (const CActionItem &)=delete |
Not copyable. | |
One single action item in a tree.
Definition at line 18 of file actionitem.h.