mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-26 09:44:40 +00:00
27 lines
488 B
QML
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
|
|
}
|