2018-12-06 22:49:35 +03:00
|
|
|
import QtQuick 2.11
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Controls.Material 2.0
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
|
|
BasePopUp {
|
|
|
|
id: pagePopUp
|
2019-07-29 15:29:07 +03:00
|
|
|
property var source: null
|
2018-12-06 22:49:35 +03:00
|
|
|
autoClose: false
|
|
|
|
|
2019-07-29 15:29:07 +03:00
|
|
|
Item {
|
|
|
|
id: sourceVal
|
2018-12-06 22:49:35 +03:00
|
|
|
anchors.fill: parent
|
2019-07-29 15:29:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
onSourceChanged: {
|
2019-08-19 14:20:49 +03:00
|
|
|
if (!source)
|
|
|
|
return;
|
|
|
|
|
2019-07-29 15:29:07 +03:00
|
|
|
source.parent = sourceVal;
|
|
|
|
source.anchors.fill = sourceVal;
|
2018-12-06 22:49:35 +03:00
|
|
|
}
|
2019-07-31 17:47:26 +03:00
|
|
|
|
|
|
|
x: parent.width / 2 - width / 2
|
|
|
|
y: parent.height / 2 - height / 2
|
2018-12-06 22:49:35 +03:00
|
|
|
}
|