diff options
Diffstat (limited to 'libqmenumodel/src/qmenumodel.h')
-rw-r--r-- | libqmenumodel/src/qmenumodel.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libqmenumodel/src/qmenumodel.h b/libqmenumodel/src/qmenumodel.h index e0f69f2..fef75e4 100644 --- a/libqmenumodel/src/qmenumodel.h +++ b/libqmenumodel/src/qmenumodel.h @@ -21,6 +21,7 @@ #define QMENUMODEL_H #include <QAbstractListModel> +#include <QHash> typedef int gint; typedef unsigned int guint; @@ -28,8 +29,6 @@ typedef void* gpointer; typedef struct _GMenuModel GMenuModel; typedef struct _GObject GObject; -class CacheData; - class QMenuModel : public QAbstractListModel { Q_OBJECT @@ -63,10 +62,10 @@ protected: GMenuModel *menuModel() const; // help function for test - QList<CacheData*> cache() const; + QHash<int, QMenuModel*> cache() const; private: - QList<CacheData*> m_cache; + QHash<int, QMenuModel*> m_cache; GMenuModel *m_menuModel; guint m_signalChangedId; |