From 14664da8230d9e76aa5cdafc80c4f5be273a1ea1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 12 Aug 2012 19:05:25 +0200 Subject: yes!!! drag and drop for Panes seems to work for now! --- lsscenemodel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lsscenemodel.h') 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: -- cgit v1.2.3