summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-01-19 22:42:28 +0100
committerPapoteur <papoteur@mageia.org>2019-01-19 22:42:28 +0100
commit890566f42bf9a43c3fefe0e85b5a839ef63b99df (patch)
tree63103bc94fb0c95a24fbbe52baecf106dee9f9d3 /qml
parent33deff085c4aba04b678f6b948d6025edc1839d8 (diff)
downloadmageiawelcome-890566f42bf9a43c3fefe0e85b5a839ef63b99df.tar
mageiawelcome-890566f42bf9a43c3fefe0e85b5a839ef63b99df.tar.gz
mageiawelcome-890566f42bf9a43c3fefe0e85b5a839ef63b99df.tar.bz2
mageiawelcome-890566f42bf9a43c3fefe0e85b5a839ef63b99df.tar.xz
mageiawelcome-890566f42bf9a43c3fefe0e85b5a839ef63b99df.zip
Allow saving the size of the window
Diffstat (limited to 'qml')
-rw-r--r--qml/mageiawelcome.py2
-rw-r--r--qml/mw-ui.qml9
2 files changed, 7 insertions, 4 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index c0be01d..e8662b8 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -160,6 +160,8 @@ if __name__ == '__main__':
appTranslator = QTranslator()
if appTranslator.load(QLocale(),"mageiawelcome","_", '/usr/share/mageiawelcome/translations'):
app.installTranslator(appTranslator)
+ app.setOrganizationName("Mageia")
+ app.setApplicationName("Mageiawelcome")
view = QQuickView()
view.setResizeMode(QQuickView.SizeRootObjectToView)
view.setTitle(app.translate('app',"Welcome to Mageia"))
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 {