aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/ScintillaQt.cpp
diff options
context:
space:
mode:
authorNeil Hodgson <unknown>2021-08-17 08:27:32 +1000
committerNeil Hodgson <unknown>2021-08-17 08:27:32 +1000
commit557bea24106e3868d2b5c5c4b066575c5236538a (patch)
tree0f463fa960c9f852a5d4a8ae0b9a85ec5eed4f42 /qt/ScintillaEditBase/ScintillaQt.cpp
parentfdd749210d8a813332d8789634b8c82aae14e9d7 (diff)
downloadscintilla-mirror-557bea24106e3868d2b5c5c4b066575c5236538a.tar.gz
Make compile on older Qt 5.9.5 on Ubuntu 18.04 with gcc 7.5.0.
Was complaining about enum conversions.
Diffstat (limited to 'qt/ScintillaEditBase/ScintillaQt.cpp')
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp
index 383f32c10..0713d4226 100644
--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -665,7 +665,7 @@ void ScintillaQt::StartDrag()
QDrag *dragon = new QDrag(scrollArea);
dragon->setMimeData(mimeData);
- Qt::DropAction dropAction = dragon->exec(Qt::CopyAction|Qt::MoveAction);
+ Qt::DropAction dropAction = dragon->exec(static_cast<Qt::DropActions>(Qt::CopyAction|Qt::MoveAction));
if ((dropAction == Qt::MoveAction) && dropWentOutside) {
// Remove dragged out text
ClearSelection();