summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-12 15:55:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-12 15:55:36 +0100
commit14cb3bfe10202e47ad7cdee749f4bcb88794abe7 (patch)
tree25224a7cb9f50f93e075bb13dcc17130f3c95814
parentUse minimum required versions for qml imports (diff)
downloadnheko-14cb3bfe10202e47ad7cdee749f4bcb88794abe7.tar.xz
Don't use centerIn on popup on Qt < 5.12
-rw-r--r--resources/qml/voip/CallDevices.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/qml/voip/CallDevices.qml b/resources/qml/voip/CallDevices.qml

index 8b30c540..fd6b6005 100644 --- a/resources/qml/voip/CallDevices.qml +++ b/resources/qml/voip/CallDevices.qml
@@ -5,9 +5,15 @@ import im.nheko 1.0 Popup { modal: true - anchors.centerIn: parent palette: colors + // only set the anchors on Qt 5.12 or higher + // see https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html#anchors.centerIn-prop + Component.onCompleted: { + if (anchors) + anchors.centerIn = parent; + } + ColumnLayout { spacing: 16