summaryrefslogtreecommitdiff
path: root/lsscenemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lsscenemodel.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/lsscenemodel.cpp b/lsscenemodel.cpp
index 38da4e7..e2e411c 100644
--- a/lsscenemodel.cpp
+++ b/lsscenemodel.cpp
@@ -68,3 +68,20 @@ QVariant LSSceneModel::data(const QModelIndex &index, int role) const {
}
return QVariant();
}
+
+
+Qt::ItemFlags LSSceneModel::flags(const QModelIndex &index) const {
+ Qt::ItemFlags flag;
+ flag = Qt::ItemIsEnabled | Qt::ItemIsSelectable |
+ Qt::ItemIsDropEnabled | Qt::ItemIsEditable;
+
+ if (index.isValid() && index.parent().isValid())
+ flag |= Qt::ItemIsDragEnabled;
+
+ return flag;
+}
+
+
+Qt::DropActions LSSceneModel::supportedDropActions() const {
+ return Qt::CopyAction | Qt::MoveAction;
+}