20 #ifndef MODELACTIONROOTSTATE_H
21 #define MODELACTIONROOTSTATE_H
23 #include "unityindicatorsglobal.h"
25 #include "rootstateparser.h"
29 class UNITYINDICATORS_EXPORT ModelActionRootState :
public RootStateObject
32 Q_PROPERTY(UnityMenuModel* menu READ menu WRITE setMenu NOTIFY menuChanged)
34 ModelActionRootState(QObject *parent = 0);
35 virtual ~ModelActionRootState();
37 UnityMenuModel* menu()
const;
38 void setMenu(UnityMenuModel* menu);
41 void setIndex(
int index);
43 bool valid()
const override;
50 void onModelRowsAdded(
const QModelIndex& parent,
int start,
int end);
51 void onModelRowsRemoved(
const QModelIndex& parent,
int start,
int end);
52 void onModelDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight,
const QVector<int>&);
56 void updateActionState();
58 UnityMenuModel* m_menu;
61 #endif // MODELACTIONROOTSTATE_H