You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
507 B
29 lines
507 B
import QtQuick 2.10
|
|
import QtQuick.Controls 2.3
|
|
import de.skycoder42.QtMvvm.Core 1.1
|
|
import de.skycoder42.QtMvvm.Quick 1.1
|
|
import de.skycoder42.QtMvvm.Sample 1.1
|
|
|
|
Rectangle {
|
|
property ChildViewModel viewModel: null
|
|
|
|
color: "red"
|
|
|
|
property bool dummyClosed: false
|
|
|
|
function closeAction() {
|
|
if(dummyClosed)
|
|
return false;
|
|
else {
|
|
dummyClosed = true;
|
|
label.text = qsTr("I was closed!")
|
|
return true;
|
|
}
|
|
}
|
|
|
|
Label {
|
|
id: label
|
|
anchors.centerIn: parent
|
|
text: qsTr("I am the child!")
|
|
}
|
|
}
|
|
|