diff options
author | Neil Hodgson <unknown> | 2021-08-17 08:27:32 +1000 |
---|---|---|
committer | Neil Hodgson <unknown> | 2021-08-17 08:27:32 +1000 |
commit | 557bea24106e3868d2b5c5c4b066575c5236538a (patch) | |
tree | 0f463fa960c9f852a5d4a8ae0b9a85ec5eed4f42 /qt/ScintillaEditBase/ScintillaQt.cpp | |
parent | fdd749210d8a813332d8789634b8c82aae14e9d7 (diff) | |
download | scintilla-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.cpp | 2 |
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(); |