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 { StackLayout {
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
implicitWidth: Math.max(mobileSync.implicitWidth, desktopSync.implicitWidth) Layout.fillWidth: true
implicitHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight) Layout.preferredHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight)
currentIndex: switchTabBar.currentIndex currentIndex: switchTabBar.currentIndex
GetSyncCodeMobileInstructions { GetSyncCodeMobileInstructions {
id: mobileSync id: mobileSync
Layout.fillHeight: true
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
purpose: root.purpose purpose: root.purpose
@ -60,8 +57,6 @@ ColumnLayout {
GetSyncCodeDesktopInstructions { GetSyncCodeDesktopInstructions {
id: desktopSync id: desktopSync
Layout.fillHeight: true
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
purpose: root.purpose purpose: root.purpose

View File

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