mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-28 10:44:42 +00:00
33 lines
618 B
QML
33 lines
618 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: {
|
|
source.parent = sourceVal;
|
|
source.anchors.fill = sourceVal;
|
|
|
|
if (source.close) {
|
|
closeConnect.target = source;
|
|
}
|
|
}
|
|
Connections {
|
|
id : closeConnect
|
|
target: null
|
|
ignoreUnknownSignals: true
|
|
onClose: {
|
|
pagePopUp.close();
|
|
}
|
|
}
|
|
}
|