Commit 99734367 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Theme Explorer] Quit with Ctrl+Q

Wires up default key for Quit to quit the application

Differential Revision: https://phabricator.kde.org/D9788
parent 7ad1e247
......@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import QtQuick 2.0
import QtQuick 2.5
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
......@@ -31,6 +31,11 @@ ApplicationWindow {
property int iconSize: iconSizeSlider.value
property alias showMargins: showMarginsCheckBox.checked
Shortcut {
sequence: StandardKey.Quit
onActivated: Qt.quit()
}
toolBar: ToolBar {
RowLayout {
anchors.fill: parent
......
......@@ -66,6 +66,8 @@ int main(int argc, char **argv)
obj->loadPackage(packagePath);
obj->engine()->rootContext()->setContextProperty("commandlineArguments", parser.positionalArguments());
QObject::connect(obj->engine(), &QQmlEngine::quit, &app, &QApplication::quit);
qmlRegisterType<ThemeListModel>();
qmlRegisterType<ColorEditor>();
ThemeModel *themeModel = new ThemeModel(obj->package());
......
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