summaryrefslogtreecommitdiff
path: root/lslayoutwindow.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-11 14:07:01 +0200
committerTreeki <treeki@gmail.com>2012-08-11 14:07:01 +0200
commitba44b0135af54aebee08610debbc2ef118f98bf2 (patch)
tree0c68d0b3709a5ad3f119273aac2dc9cf071cca4b /lslayoutwindow.cpp
parent3b2fb505d58f28f0ce9b4de121f12fc924c1ec0c (diff)
downloadLayoutStudio-ba44b0135af54aebee08610debbc2ef118f98bf2.tar.gz
LayoutStudio-ba44b0135af54aebee08610debbc2ef118f98bf2.zip
trying to add scene graph tree drag/drop, no idea what I'm doing
Diffstat (limited to '')
-rw-r--r--lslayoutwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lslayoutwindow.cpp b/lslayoutwindow.cpp
index 518d022..7360dcb 100644
--- a/lslayoutwindow.cpp
+++ b/lslayoutwindow.cpp
@@ -75,6 +75,10 @@ LSLayoutWindow::LSLayoutWindow(LYTPackageBase *pkg, const QString &layoutName, Q
m_widthBox->setValue(m_layout->width);
m_heightBox->setValue(m_layout->height);
+ m_sceneGraph->setSelectionMode(QAbstractItemView::ExtendedSelection);
+ m_sceneGraph->setDragEnabled(true);
+ m_sceneGraph->setAcceptDrops(true);
+ m_sceneGraph->setDropIndicatorShown(true);
m_sceneGraph->setModel(new LSSceneModel(m_layout, this));
m_sceneGraph->expandAll();