diff options
author | Treeki <treeki@gmail.com> | 2012-08-12 19:05:25 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-12 19:05:25 +0200 |
commit | 14664da8230d9e76aa5cdafc80c4f5be273a1ea1 (patch) | |
tree | 41db92e12eef0f6a89d554925dd47f0d51406f00 /lsscenemodel.h | |
parent | b8b4afa08efcd77f4e43898b4d8d5323484ce2f4 (diff) | |
download | LayoutStudio-14664da8230d9e76aa5cdafc80c4f5be273a1ea1.tar.gz LayoutStudio-14664da8230d9e76aa5cdafc80c4f5be273a1ea1.zip |
yes!!! drag and drop for Panes seems to work for now!
Diffstat (limited to 'lsscenemodel.h')
-rw-r--r-- | lsscenemodel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lsscenemodel.h b/lsscenemodel.h index c769857..4dd1019 100644 --- a/lsscenemodel.h +++ b/lsscenemodel.h @@ -9,6 +9,7 @@ class LSSceneModel : public QAbstractItemModel { Q_OBJECT public: explicit LSSceneModel(LYTLayout *layout, QObject *parent = 0); + ~LSSceneModel(); LYTLayout *layout() const { return m_layout; } @@ -21,10 +22,16 @@ public: Qt::ItemFlags flags(const QModelIndex &index) const; Qt::DropActions supportedDropActions() const; + bool insertRows(int row, int count, const QModelIndex &parent); + bool removeRows(int row, int count, const QModelIndex &parent); + private: LYTLayout *m_layout; QIcon m_paneIcons[LYTPane::PaneTypeCount]; + + QPersistentModelIndex *m_movingPaneParent; + int m_movingPaneRow; signals: |