From 890566f42bf9a43c3fefe0e85b5a839ef63b99df Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 19 Jan 2019 22:42:28 +0100 Subject: Allow saving the size of the window --- qml/mw-ui.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'qml/mw-ui.qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 717ade6..bd327f7 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -6,16 +6,17 @@ import QtQuick.Controls 1.4 import QtQuick.Controls.Styles 1.4 import QtGraphicalEffects 1 import QtQuick.Window 2 +import Qt.labs.settings 1.0 Rectangle { id: box width: 1000; height: 700 property alias view: view - // For RTL tests - //LayoutMirroring.enabled: true - //LayoutMirroring.childrenInherit: true - + Settings { + property alias width: box.width + property alias height: box.height + } Component { id: slidebackground LinearGradient { -- cgit v1.2.1