From 926ac69c71cdc241051f9f90fd12c94a4e777be2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 9 Sep 2015 09:54:53 +0200 Subject: [PATCH] Added close button to changelog Fixes Ultimaker/Cura#350 --- plugins/ChangeLogPlugin/ChangeLog.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/ChangeLogPlugin/ChangeLog.qml b/plugins/ChangeLogPlugin/ChangeLog.qml index 74170721d1..d4dbc3e524 100644 --- a/plugins/ChangeLogPlugin/ChangeLog.qml +++ b/plugins/ChangeLogPlugin/ChangeLog.qml @@ -14,9 +14,11 @@ UM.Dialog width: 300 * Screen.devicePixelRatio; height: 500 * Screen.devicePixelRatio; title: "Changelog" + ScrollView { - anchors.fill:parent + width: parent.width + height: parent.height - 25 Text { text: manager.getChangeLogString() @@ -24,4 +26,11 @@ UM.Dialog wrapMode: Text.Wrap; } } + Button + { + anchors.bottom:parent.bottom + text: "close" + onClicked: base.hide() + anchors.horizontalCenter: parent.horizontalCenter + } }