forked from Sepanta/console-emulator
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.
63 lines
1.2 KiB
63 lines
1.2 KiB
import QtQuick 2.0
|
|
|
|
import de.skycoder42.QtMvvm.Core 1.0
|
|
import de.skycoder42.QtMvvm.Quick 1.0
|
|
import com.example.consoleemulator 1.0
|
|
|
|
import "qrc:/qtmvvm/views"
|
|
import "qrc:/const"
|
|
import "qrc:/emulator/components"
|
|
|
|
ModeOption {
|
|
property var name: ""
|
|
property var nameIncrease: ""
|
|
property var nameDecrease: ""
|
|
property var nameLed: ""
|
|
property var nameLedOption: ""
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "stepInc"
|
|
viewModelProperty: "stepInc"
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "stepDec"
|
|
viewModelProperty: "stepDec"
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "down"
|
|
viewModelProperty: name
|
|
type: MvvmBinding.OneWayToViewModel
|
|
}
|
|
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "increase"
|
|
viewModelProperty: nameIncrease
|
|
type: MvvmBinding.OneWayToViewModel
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "decrease"
|
|
viewModelProperty: nameDecrease
|
|
type: MvvmBinding.OneWayToViewModel
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "led"
|
|
viewModelProperty: nameLed
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "ledOption"
|
|
viewModelProperty: nameLedOption
|
|
}
|
|
}
|
|
|