summaryrefslogtreecommitdiff
path: root/lsscenemodel.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-12 19:05:25 +0200
committerTreeki <treeki@gmail.com>2012-08-12 19:05:25 +0200
commit14664da8230d9e76aa5cdafc80c4f5be273a1ea1 (patch)
tree41db92e12eef0f6a89d554925dd47f0d51406f00 /lsscenemodel.h
parentb8b4afa08efcd77f4e43898b4d8d5323484ce2f4 (diff)
downloadLayoutStudio-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.h7
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: