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.
43 lines
823 B
43 lines
823 B
7 years ago
|
import QtQuick 2.10
|
||
|
import QtQuick.Controls 2.3
|
||
|
import QtQuick.Layouts 1.3
|
||
|
import de.skycoder42.QtMvvm.Core 1.0
|
||
|
import de.skycoder42.QtMvvm.Quick 1.0
|
||
|
import de.skycoder42.quickextras 2.0
|
||
|
import de.skycoder42.QtMvvm.Sample 1.0
|
||
|
|
||
|
AlertDialog {
|
||
|
id: resultDialog
|
||
|
|
||
|
property ResultViewModel viewModel: null
|
||
|
|
||
|
title: qsTr("Enter something")
|
||
|
|
||
|
ColumnLayout {
|
||
|
anchors.fill: parent
|
||
|
|
||
|
Label {
|
||
|
text: qsTr("Enter a result to be reported as event to the main view:")
|
||
|
wrapMode: Text.WordWrap
|
||
|
Layout.fillWidth: true
|
||
|
}
|
||
|
|
||
|
TextField {
|
||
|
id: resultEdit
|
||
|
Layout.fillWidth: true
|
||
|
selectByMouse: true
|
||
|
|
||
|
MvvmBinding {
|
||
|
viewModel: resultDialog.viewModel
|
||
|
viewModelProperty: "result"
|
||
|
view: resultEdit
|
||
|
viewProperty: "text"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||
|
|
||
|
onAccepted: viewModel.done()
|
||
|
}
|