Tweak things to center the window 61/26061/1 jellyfish 10.0.2 10.0.3 jellyfish/10.0.2 jellyfish/10.0.3 jellyfish_10.0.2 jellyfish_10.0.3
authorScott Murray <scott.murray@konsulko.com>
Mon, 1 Feb 2021 23:13:28 +0000 (18:13 -0500)
committerScott Murray <scott.murray@konsulko.com>
Mon, 8 Feb 2021 23:33:27 +0000 (23:33 +0000)
commit586c0a23d7fed47bce097a35324b5ca65fcf42b7
tree5e4d669fc29477e77e0f614b1a665187a33b3983
parent0ce634aeac81fa303c671f3b1a97035e1e58c41c
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