Commit bd61da54 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

Fix Android compile

mCollection doesnt exist on Private whenever we dont have KF5XmlGui
so we need to guard this part
parent 6f0c09b8
Pipeline #115254 passed with stage
in 7 minutes and 22 seconds
......@@ -541,13 +541,15 @@ void ElisaApplication::installKeyEventFilter(QObject *object)
bool ElisaApplication::eventFilter(QObject *object, QEvent *event)
{
Q_UNUSED(object)
#if KF5XmlGui_FOUND
auto *keyEvent = static_cast<QKeyEvent*>(event);
auto playPauseAction = d->mCollection.action(QStringLiteral("Play-Pause"));
if (keyEvent->key() == Qt::Key_Space && playPauseAction->shortcut()[0] == Qt::Key_Space) {
return true;
}
#else
Q_UNUSED(event)
#endif
return false;
}
......
Markdown is supported
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