Skip to content
Snippets Groups Projects
Commit 14cb3bfe authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Don't use centerIn on popup on Qt < 5.12

parent 826a5cfb
No related branches found
No related tags found
No related merge requests found
Pipeline #336 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment