|
|
@ -31,24 +31,12 @@ ApplicationWindow { |
|
|
|
onActivated: userProfileDialog.close() |
|
|
|
onActivated: userProfileDialog.close() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ListView { |
|
|
|
ColumnLayout { |
|
|
|
id: devicelist |
|
|
|
id: contentL |
|
|
|
|
|
|
|
|
|
|
|
property int selectedTab: 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout.fillHeight: true |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
clip: true |
|
|
|
|
|
|
|
spacing: 8 |
|
|
|
|
|
|
|
boundsBehavior: Flickable.StopAtBounds |
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
anchors.fill: parent |
|
|
|
anchors.margins: 10 |
|
|
|
anchors.margins: 10 |
|
|
|
footerPositioning: ListView.OverlayFooter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
header: ColumnLayout { |
|
|
|
|
|
|
|
id: contentL |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
width: devicelist.width |
|
|
|
|
|
|
|
spacing: Nheko.paddingMedium |
|
|
|
spacing: Nheko.paddingMedium |
|
|
|
|
|
|
|
|
|
|
|
Avatar { |
|
|
|
Avatar { |
|
|
@ -328,7 +316,19 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
|
|
Layout.bottomMargin: Nheko.paddingMedium |
|
|
|
Layout.bottomMargin: Nheko.paddingMedium |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ListView { |
|
|
|
|
|
|
|
id: devicelist |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
property int selectedTab: 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Layout.fillHeight: true |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
clip: true |
|
|
|
|
|
|
|
spacing: 8 |
|
|
|
|
|
|
|
boundsBehavior: Flickable.StopAtBounds |
|
|
|
|
|
|
|
footerPositioning: ListView.OverlayFooter |
|
|
|
|
|
|
|
ScrollBar.vertical: ScrollBar {} |
|
|
|
|
|
|
|
|
|
|
|
model: (selectedTab == 0) ? devicesModel : sharedRoomsModel |
|
|
|
model: (selectedTab == 0) ? devicesModel : sharedRoomsModel |
|
|
|
|
|
|
|
|
|
|
@ -519,10 +519,11 @@ ApplicationWindow { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
footer: DialogButtonBox { |
|
|
|
DialogButtonBox { |
|
|
|
z: 2 |
|
|
|
z: 2 |
|
|
|
width: devicelist.width |
|
|
|
Layout.fillWidth: true |
|
|
|
alignment: Qt.AlignRight |
|
|
|
alignment: Qt.AlignRight |
|
|
|
standardButtons: DialogButtonBox.Ok |
|
|
|
standardButtons: DialogButtonBox.Ok |
|
|
|
onAccepted: userProfileDialog.close() |
|
|
|
onAccepted: userProfileDialog.close() |
|
|
@ -533,7 +534,5 @@ ApplicationWindow { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|