diff --git a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml index d6ab898718..722395c9ae 100644 --- a/src/kcmkwin/kwindesktop/package/contents/ui/main.qml +++ b/src/kcmkwin/kwindesktop/package/contents/ui/main.qml @@ -46,10 +46,10 @@ KCM.ScrollViewKCM { bottomPadding: 0 Layout.fillWidth: true - - Layout.alignment: Qt.AlignVCenter + Layout.fillHeight: true text: model ? model.display : "" + verticalAlignment: Text.AlignVCenter readOnly: true @@ -60,6 +60,14 @@ KCM.ScrollViewKCM { onEditingFinished: { readOnly = true; } + + MouseArea { + anchors.fill: parent + + onDoubleClicked: { + renameAction.trigger(); + } + } } Rectangle { @@ -75,6 +83,7 @@ KCM.ScrollViewKCM { actions: [ Kirigami.Action { + id: renameAction enabled: model && !model.IsMissing iconName: "edit-rename" tooltip: i18nc("@info:tooltip", "Rename")