Commit 47e4fa8e authored by Zren (Chris Holland)'s avatar Zren (Chris Holland)

[cuttlefish] Bind StandardKey.Quit (Ctrl+Q) to exit the app

QML Shortcut requires Qt 5.5, so we bumped QtQuick to 2.5.

Differential Revision: https://phabricator.kde.org/D16521
parent bdf7f244
......@@ -19,7 +19,7 @@
* *
***************************************************************************/
import QtQuick 2.1
import QtQuick 2.5
import QtQuick.Layouts 1.0
import org.kde.plasma.core 2.0 as PlasmaCore
......@@ -92,4 +92,9 @@ Item {
}
}
}
Shortcut {
sequence: StandardKey.Quit
onActivated: Qt.quit()
}
}
......@@ -23,6 +23,7 @@
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QDebug>
#include <QQmlEngine>
// Frameworks
#include <KConfigGroup>
......@@ -68,6 +69,8 @@ int main(int argc, char **argv)
QString _cc = parser.value(category);
auto settingsapp = new CuttleFish::View(_cc, parser);
QObject::connect(settingsapp->engine(), &QQmlEngine::quit, &app, &QApplication::quit);
if (parser.isSet(fullscreen)) {
settingsapp->setVisibility(QWindow::FullScreen);
}
......
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