diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-23 12:03:07 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-23 12:03:07 -0300 |
commit | 6078bd7ddc6819d2650435313bb824442bbe033d (patch) | |
tree | 510e14d5585b7fa2777a1a51b9616be07e25de30 /libqmenumodel/src/qmenumodel.h | |
parent | 04391e9723278f8bb0a0985abd50aa9c3455980d (diff) | |
download | qmenumodel-6078bd7ddc6819d2650435313bb824442bbe033d.tar.gz qmenumodel-6078bd7ddc6819d2650435313bb824442bbe033d.tar.bz2 qmenumodel-6078bd7ddc6819d2650435313bb824442bbe033d.zip |
Fixed QMenumodel behaviour when the GMenuModel is destroyed.
Diffstat (limited to 'libqmenumodel/src/qmenumodel.h')
-rw-r--r-- | libqmenumodel/src/qmenumodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqmenumodel/src/qmenumodel.h b/libqmenumodel/src/qmenumodel.h index beec7ba..f3b431c 100644 --- a/libqmenumodel/src/qmenumodel.h +++ b/libqmenumodel/src/qmenumodel.h @@ -26,6 +26,7 @@ typedef int gint; typedef unsigned int guint; typedef void* gpointer; typedef struct _GMenuModel GMenuModel; +typedef struct _GObject GObject; class QMenuModel : public QAbstractListModel { @@ -62,8 +63,10 @@ private: QVariant getExtraProperties(const QModelIndex &index) const; QString parseExtraPropertyName(const QString &name) const; void clearModel(); + void setMenuModelImpl(GMenuModel *model); static void onItemsChanged(GMenuModel *model, gint position, gint removed, gint added, gpointer data); + static void onGMenuModelDestroyed(gpointer data, GObject *oldObject); }; #endif |