From a55b7493b1bd54e9d1231fa18300e0f882700fe3 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 18 Aug 2012 04:29:13 +0200 Subject: made pane visibility part of the scene graph tree --- lsscenemodel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lsscenemodel.h') diff --git a/lsscenemodel.h b/lsscenemodel.h index 11ef4a6..e089e46 100644 --- a/lsscenemodel.h +++ b/lsscenemodel.h @@ -8,7 +8,7 @@ class LSSceneModel : public QAbstractItemModel { Q_OBJECT public: - explicit LSSceneModel(LYTLayout *layout, QObject *parent = 0); + explicit LSSceneModel(LYTLayout *layout, bool exposeVisibility, QObject *parent = 0); ~LSSceneModel(); LYTLayout *layout() const { return m_layout; } @@ -18,6 +18,7 @@ public: int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role) const; + bool setData(const QModelIndex &index, const QVariant &value, int role); Qt::ItemFlags flags(const QModelIndex &index) const; Qt::DropActions supportedDropActions() const; @@ -32,8 +33,11 @@ private: QPersistentModelIndex *m_movingPaneParent; int m_movingPaneRow, m_movingPaneCount; + + bool m_exposesVisibility; signals: + void paneVisibilityChanged(); public slots: -- cgit v1.2.3