From ec0a5db0479645b14efea2525b6a801b6cf665d6 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 3 Feb 2017 11:23:15 +0100 Subject: multi-screen example: add control-alt-backspace Shortcut to quit Same as 8cdd72afc11d96ec41f65577b38ffea63bc7294c on the pure-qml example. On the eglfs platform, there is no obvious way to exit back to a console, so it's too easy to get stuck in this example and need to reboot via ssh or some such. Ctrl-Alt-Backspace is the historical way of exiting from an X11 or Weston session, so we use it here. Change-Id: Ife3318675f1b5dbe640feb8f3f99e80efbd5dcfd Reviewed-by: Pier Luigi Fiorini Reviewed-by: Johan Helsing --- examples/wayland/multi-screen/qml/Screen.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/wayland/multi-screen/qml/Screen.qml b/examples/wayland/multi-screen/qml/Screen.qml index 815140710..21f2d1266 100644 --- a/examples/wayland/multi-screen/qml/Screen.qml +++ b/examples/wayland/multi-screen/qml/Screen.qml @@ -48,7 +48,7 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick 2.8 import QtWayland.Compositor 1.0 import QtQuick.Window 2.3 @@ -95,5 +95,9 @@ WaylandOutput { visible: mouseTracker.containsMouse } } + Shortcut { + sequence: "Ctrl+Alt+Backspace" + onActivated: Qt.quit() + } } } -- cgit v1.2.3