From 467677c38ee478e31cf0b197e92c3171054e0d3d Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Wed, 2 Mar 2022 17:46:21 -0800 Subject: [PATCH] Improve KeyPublisher's usability Signed-off-by: Louise Poubel --- src/plugins/key_publisher/KeyPublisher.qml | 29 +++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/plugins/key_publisher/KeyPublisher.qml b/src/plugins/key_publisher/KeyPublisher.qml index 9cf4da049..e08a9eedd 100644 --- a/src/plugins/key_publisher/KeyPublisher.qml +++ b/src/plugins/key_publisher/KeyPublisher.qml @@ -15,13 +15,30 @@ * */ -import QtQuick 2.0 -import QtQuick.Controls 2.0 +import QtQuick 2.9 +import QtQuick.Controls 2.1 import QtQuick.Layouts 1.3 -Rectangle { - visible: false - Layout.minimumWidth: 100 - Layout.minimumHeight: 100 +GridLayout { + columns: 1 + columnSpacing: 10 + Layout.minimumWidth: 350 + Layout.minimumHeight: 200 + anchors.fill: parent + anchors.margins: 10 + + Label { + Layout.columnSpan: 1 + Layout.fillWidth: true + wrapMode: Text.WordWrap + text: "Keystrokes are being published to topic:\n'/keyboard/keypress'." + } + + + Item { + Layout.columnSpan: 1 + width: 10 + Layout.fillHeight: true + } }