3 import
QtQuick.Controls.Material 2.3
4 import
QtQuick.Controls.Universal 2.3
21 id: _networkExchangeView
34 property NetworkExchangeViewModel viewModel: null
40 text: qsTr(
"Network Exchange")
52 Layout.fillWidth: true
53 color: _portEdit.focus ? _nameEdit.selectionColor : palette.text
54 opacity: _portEdit.focus ? 1 : 0.5
59 Layout.fillWidth:
true 66 viewModelProperty:
"port" 74 Layout.fillWidth: true
75 color: _nameEdit.focus ? _nameEdit.selectionColor : palette.text
76 opacity: _nameEdit.focus ? 1 : 0.5
81 Layout.fillWidth:
true 85 viewModelProperty:
"deviceName" 92 Layout.fillWidth:
true 93 Layout.minimumHeight: 1
94 Layout.maximumHeight: 1
97 return Material.foreground;
99 return Universal.foreground;
107 text: qsTr(
"Exchange active:")
110 viewModel: _networkExchangeView.
viewModel 111 viewModelProperty:
"active" 112 view: _exchangeSwitch
113 viewProperty:
"checked" 119 Layout.fillWidth:
true 120 Layout.fillHeight:
true 123 model: viewModel.sortedModel
125 ScrollBar.vertical: ScrollBar {}
127 delegate: ItemDelegate {
130 contentItem: ColumnLayout {
136 Layout.fillWidth:
true 142 font.pointSize: _nameLabel.font.pointSize * 0.8
143 Layout.fillWidth:
true 150 onClicked: viewModel.exportTo(index)
A QML class to create a local mvvm multiway binding.
The QML import for the QtMvvmDataSyncCore QML module.
The QML import for the QtMvvmCore QML module.
QString currentStyle
The name of the currently active Quick Controls 2 Style.
The QML import for the QtMvvmQuick QML module.
QObject viewModel
The object in the role of a viewmodel.
A QML singleton to access common presenter methods globally.