moved ContainersPageHomeListView and ConnectionTypeSelectionDrawer to separate components
This commit is contained in:
parent
acca85b99a
commit
0479113949
23 changed files with 443 additions and 294 deletions
|
|
@ -24,8 +24,7 @@ Item {
|
|||
property string rootButtonBorderColor: "#494B50"
|
||||
property int rootButtonBorderWidth: 1
|
||||
|
||||
property Component menuDelegate
|
||||
property variant menuModel
|
||||
property Component listView
|
||||
|
||||
property alias menuVisible: menu.visible
|
||||
|
||||
|
|
@ -169,30 +168,9 @@ Item {
|
|||
|
||||
spacing: 16
|
||||
|
||||
ButtonGroup {
|
||||
id: radioButtonGroup
|
||||
}
|
||||
|
||||
ListView {
|
||||
id: menuContent
|
||||
width: parent.width
|
||||
height: menuContent.contentItem.height
|
||||
|
||||
currentIndex: -1
|
||||
|
||||
clip: true
|
||||
interactive: false
|
||||
|
||||
model: root.menuModel
|
||||
|
||||
delegate: Row {
|
||||
Loader {
|
||||
id: loader
|
||||
sourceComponent: root.menuDelegate
|
||||
property QtObject modelData: model
|
||||
property var delegateIndex: index
|
||||
}
|
||||
}
|
||||
Loader {
|
||||
id: listViewLoader
|
||||
sourceComponent: root.listView
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue