summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-18 12:43:27 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-18 12:43:27 +0100
commitfcc1358e6b7bdbc3df73e707e96d4eb5a9a6a9b6 (patch)
tree96a81d189da8ac5b894be3a4968bf229fa651659
parentTranslated using Weblate (Estonian) (diff)
downloadnheko-fcc1358e6b7bdbc3df73e707e96d4eb5a9a6a9b6.tar.xz
Fix more anchors.centerIn
-rw-r--r--resources/qml/StatusIndicator.qml3
-rw-r--r--resources/qml/voip/DeviceError.qml8
-rw-r--r--resources/qml/voip/PlaceCall.qml8
3 files changed, 15 insertions, 4 deletions
diff --git a/resources/qml/StatusIndicator.qml b/resources/qml/StatusIndicator.qml

index f2f99e09..165e730d 100644 --- a/resources/qml/StatusIndicator.qml +++ b/resources/qml/StatusIndicator.qml
@@ -25,12 +25,11 @@ ImageButton { return ""; } } - onClicked: { if (model.state == MtxEvent.Read) TimelineManager.timeline.readReceiptsAction(model.id); - } + } image: { switch (model.state) { case MtxEvent.Failed: diff --git a/resources/qml/voip/DeviceError.qml b/resources/qml/voip/DeviceError.qml
index 81872ef7..a5000ada 100644 --- a/resources/qml/voip/DeviceError.qml +++ b/resources/qml/voip/DeviceError.qml
@@ -8,7 +8,13 @@ Popup { property var image modal: true - anchors.centerIn: parent + // 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; + + } RowLayout { Image { diff --git a/resources/qml/voip/PlaceCall.qml b/resources/qml/voip/PlaceCall.qml
index 6717f0a9..41cbd54c 100644 --- a/resources/qml/voip/PlaceCall.qml +++ b/resources/qml/voip/PlaceCall.qml
@@ -6,7 +6,13 @@ import im.nheko 1.0 Popup { modal: true - anchors.centerIn: parent + // 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; + + } palette: colors Component {