Fix more anchors.centerIn

pull/382/head
Nicolas Werner 4 years ago
parent b43562d4f5
commit fcc1358e6b
  1. 3
      resources/qml/StatusIndicator.qml
  2. 8
      resources/qml/voip/DeviceError.qml
  3. 8
      resources/qml/voip/PlaceCall.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:

@ -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 {

@ -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 {

Loading…
Cancel
Save