Commit 6e923f4f authored by Laurent Montel's avatar Laurent Montel
Browse files

Port deprecated methods

parent 3eebed80
Pipeline #246530 passed with stage
in 7 minutes and 57 seconds
......@@ -621,9 +621,11 @@ void KODayMatrix::dropEvent(QDropEvent *e)
}
bool exist = items.at(0).isValid();
int action = DRAG_CANCEL;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Qt::KeyboardModifiers keyboardModifiers = e->keyboardModifiers();
#else
Qt::KeyboardModifiers keyboardModifiers = e->modifiers();
#endif
if (keyboardModifiers & Qt::ControlModifier) {
action = DRAG_COPY;
} else if (keyboardModifiers & Qt::ShiftModifier) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment