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.
28 lines
547 B
28 lines
547 B
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"
|
|
|
|
KnobLight {
|
|
id: knobLight
|
|
property var name
|
|
property var nameLed: name + "Led"
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "down"
|
|
viewModelProperty: name
|
|
type: MvvmBinding.OneWayToViewModel
|
|
}
|
|
|
|
MvvmBinding {
|
|
viewModel: mainView.viewModel
|
|
viewProperty: "colorMode"
|
|
viewModelProperty: nameLed
|
|
}
|
|
}
|
|
|