Tweak things to center the window 05/26005/1 koi 10.93.1 11.0.0 11.0.1 11.0.2 11.0.3 11.0.4 11.0.5 koi/10.93.1 koi/11.0.0 koi/11.0.1 koi/11.0.2 koi/11.0.3 koi/11.0.4 koi/11.0.5 koi_10.93.1 koi_11.0.0 koi_11.0.1 koi_11.0.2 koi_11.0.3 koi_11.0.4 koi_11.0.5
authorScott Murray <scott.murray@konsulko.com>
Mon, 1 Feb 2021 23:13:28 +0000 (18:13 -0500)
committerScott Murray <scott.murray@konsulko.com>
Thu, 4 Feb 2021 16:58:37 +0000 (16:58 +0000)
commit8c5393ebb1f867796d817c3e218371860c2733cf
tree7d5a85092f2c2adc76c486530be2d2ca78598fb1
parent8d4d7b9f636543c361d1d289baca4ee59e33f9ec
Tweak things to center the window

Add a onCompleted hook in Main.qml to set it's x and y coordinates to
center the window, and rework instantiation of the qml in main.cpp so
that the resulting x and y values can be queried and used in a call to
set_window_props to actually position the window.

Bug-AGL: SPEC-3784

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I46e2dfac7c62c9afd379fd6bf7b7fa3277422cbc
(cherry picked from commit b587bf9d453f29656c2a52bc486881c0e3cb67c6)
app/Main.qml
app/main.cpp