diff options
author | Xavier BESSON <developer@xavi-b.fr> | 2023-09-28 08:54:34 +0200 |
---|---|---|
committer | Xavier BESSON (Personal) <developer@xavi-b.fr> | 2023-10-09 12:47:26 +0000 |
commit | 23908b283e429a65d937231d59375c72ac1b62f3 (patch) | |
tree | 466c9268742420a6f8bc2638d8d97e054f4e73d9 /src/plugins/texteditor/bookmarkmanager.h | |
parent | 6adaa850e8bd15b9b9165710cae139bec8d3f7c3 (diff) |
Bookmarks: goto on double click + drag & drop on view
Change-Id: Iec21843fb6679d156e9839f84e56005b8eef7f32
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/bookmarkmanager.h')
-rw-r--r-- | src/plugins/texteditor/bookmarkmanager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/texteditor/bookmarkmanager.h b/src/plugins/texteditor/bookmarkmanager.h index 4df91094e3d..c83763d870f 100644 --- a/src/plugins/texteditor/bookmarkmanager.h +++ b/src/plugins/texteditor/bookmarkmanager.h @@ -50,6 +50,9 @@ public: Qt::DropActions supportedDragActions() const final; QStringList mimeTypes() const final; QMimeData *mimeData(const QModelIndexList &indexes) const final; + Qt::DropActions supportedDropActions() const final; + bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const final; + bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) final; // this QItemSelectionModel is shared by all views QItemSelectionModel *selectionModel() const; @@ -69,6 +72,7 @@ public: void prevInDocument(); void next(); void prev(); + void move(Bookmark* mark, int newRow); void moveUp(); void moveDown(); void edit(); |