2019-08-19 14:20:49 +03:00

27 lines
488 B
QML

import QtQuick 2.11
import QtQuick.Controls 2.3
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
BasePopUp {
id: pagePopUp
property var source: null
autoClose: false
Item {
id: sourceVal
anchors.fill: parent
}
onSourceChanged: {
if (!source)
return;
source.parent = sourceVal;
source.anchors.fill = sourceVal;
}
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
}