diff options
author | Treeki <treeki@gmail.com> | 2012-08-18 04:29:13 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-18 04:29:13 +0200 |
commit | a55b7493b1bd54e9d1231fa18300e0f882700fe3 (patch) | |
tree | ed1e1eb8da7a10b49278e3a0801980d0663ea201 /lsscenemodel.h | |
parent | 56bf2bd3ff73fc3cd86dcb4f4cd1e42016522bea (diff) | |
download | LayoutStudio-a55b7493b1bd54e9d1231fa18300e0f882700fe3.tar.gz LayoutStudio-a55b7493b1bd54e9d1231fa18300e0f882700fe3.zip |
made pane visibility part of the scene graph tree
Diffstat (limited to '')
-rw-r--r-- | lsscenemodel.h | 6 |
1 files changed, 5 insertions, 1 deletions
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: |