aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppoutline.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-09-29 14:41:42 +0200
committerEike Ziller <eike.ziller@digia.com>2014-09-30 13:08:49 +0200
commit81cb471997a83b2caf3dbb107accb0cece084e10 (patch)
treebed10b5156769fa3e81b5ba8d33c864b4a4e4d99 /src/plugins/cppeditor/cppoutline.h
parent92c4f26e99397adb44728270011384a453e900c2 (diff)
Editors: Support dragging from outline views
Fill the line and column information in the location returned by QmlOutlineModel::sourceLocation for that. The drag & drop code also needed a way to override the executed drop action for file drops, because the QML outline supports move-drags, which would lead to the items being removed from the outline when dragged onto a split... Change-Id: I2478abc7d5aa2f3aa676cdd609ecb69a50adce8c Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppoutline.h')
-rw-r--r--src/plugins/cppeditor/cppoutline.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppoutline.h b/src/plugins/cppeditor/cppoutline.h
index 0092bd9b4f..f264439d2e 100644
--- a/src/plugins/cppeditor/cppoutline.h
+++ b/src/plugins/cppeditor/cppoutline.h
@@ -60,6 +60,7 @@ public:
// QSortFilterProxyModel
bool filterAcceptsRow(int sourceRow,
const QModelIndex &sourceParent) const;
+ Qt::DropActions supportedDragActions() const;
private:
CPlusPlus::OverviewModel *m_sourceModel;
};