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.
 
 
 
 

55 lines
1.1 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"
ModeButton {
property var name: ""
property var nameIncrease: ""
property var nameDecrease: ""
property var nameLed: ""
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
}
}