diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2017-02-28 17:43:28 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2017-02-28 17:43:28 +0100 |
commit | 87ea781595dfbe0274ede247f9d50610079787c8 (patch) | |
tree | 1ac78772495b5f4a0d67da4a04466a28310820de /libqmenumodel/src/unitymenumodelevents.h | |
parent | 2eaa36e38c910a0ee2450ac7ccae6473d359eb58 (diff) | |
download | qmenumodel-87ea781595dfbe0274ede247f9d50610079787c8.tar.gz qmenumodel-87ea781595dfbe0274ede247f9d50610079787c8.tar.bz2 qmenumodel-87ea781595dfbe0274ede247f9d50610079787c8.zip |
Batch add and removes into the model
Diffstat (limited to 'libqmenumodel/src/unitymenumodelevents.h')
-rw-r--r-- | libqmenumodel/src/unitymenumodelevents.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libqmenumodel/src/unitymenumodelevents.h b/libqmenumodel/src/unitymenumodelevents.h index dcb27ff..d860f0e 100644 --- a/libqmenumodel/src/unitymenumodelevents.h +++ b/libqmenumodel/src/unitymenumodelevents.h @@ -21,6 +21,7 @@ #define UNITYMENUMODELEVENTS_H #include <QEvent> +#include <glib.h> typedef struct _GtkMenuTrackerItem GtkMenuTrackerItem; @@ -39,10 +40,10 @@ class UnityMenuModelAddRowEvent : public QEvent { public: static const QEvent::Type eventType; - UnityMenuModelAddRowEvent(GtkMenuTrackerItem *item, int position); + UnityMenuModelAddRowEvent(GPtrArray *_items, int position); ~UnityMenuModelAddRowEvent(); - GtkMenuTrackerItem *item; + GPtrArray *items; int position; }; @@ -51,9 +52,10 @@ class UnityMenuModelRemoveRowEvent : public QEvent { public: static const QEvent::Type eventType; - UnityMenuModelRemoveRowEvent(int position); + UnityMenuModelRemoveRowEvent(int position, int nItems); int position; + int nItems; }; /* Event for a row data change for unitymenumodel */ |