fix(Sync): unbreak sync instructions page layout

Iterates: #14668
This commit is contained in:
Lukáš Tinkl 2024-07-22 15:56:47 +02:00 committed by Lukáš Tinkl
parent b02d0d4b1c
commit 9c90f0eab5
2 changed files with 4 additions and 9 deletions

View File

@ -42,16 +42,13 @@ ColumnLayout {
}
StackLayout {
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter
implicitWidth: Math.max(mobileSync.implicitWidth, desktopSync.implicitWidth)
implicitHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight)
Layout.fillWidth: true
Layout.preferredHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight)
currentIndex: switchTabBar.currentIndex
GetSyncCodeMobileInstructions {
id: mobileSync
Layout.fillHeight: true
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter
purpose: root.purpose
@ -60,8 +57,6 @@ ColumnLayout {
GetSyncCodeDesktopInstructions {
id: desktopSync
Layout.fillHeight: true
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter
purpose: root.purpose

View File

@ -15,7 +15,7 @@ import SortFilterProxyModel 0.2
Item {
id: root
property alias devicesModel: sfpModel.sourceModel
property var devicesModel
property string userDisplayName
property string userColorId
property string userColorHash
@ -177,7 +177,7 @@ Item {
clip: true
model: SortFilterProxyModel {
id: sfpModel
sourceModel: root.devicesModel
filters: [
ValueFilter {
enabled: true