mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
swarmdetailspanel: avoid bugguy column layout
Since Qt 6.4, some layout are bugguy causing bad positioning. (Even some examples in Qt's doc are incorrect) So, use anchors instead. Change-Id: Id0f0175208312b6e4b9fe503d8713c7ff037024a GitLab: #1217
This commit is contained in:
parent
0b18f3d145
commit
afc0423bf6
1 changed files with 12 additions and 5 deletions
|
@ -42,19 +42,23 @@ Rectangle {
|
|||
id: swarmProfileDetails
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
Item {
|
||||
id: header
|
||||
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: JamiTheme.swarmDetailsPageTopMargin
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: headerRow.implicitHeight + JamiTheme.preferredMarginSize + settingsTabButton.height
|
||||
|
||||
spacing: JamiTheme.preferredMarginSize
|
||||
|
||||
RowLayout {
|
||||
id: headerRow
|
||||
spacing: 15
|
||||
Layout.leftMargin: 15
|
||||
anchors.top: parent.top
|
||||
anchors.leftMargin: 15
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
PhotoboothView {
|
||||
id: currentAccountAvatar
|
||||
|
@ -162,8 +166,11 @@ Rectangle {
|
|||
|
||||
currentIndex: 0
|
||||
|
||||
Layout.preferredWidth: root.width
|
||||
Layout.preferredHeight: settingsTabButton.height
|
||||
anchors.top: headerRow.bottom
|
||||
anchors.topMargin: JamiTheme.preferredMarginSize
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: settingsTabButton.height
|
||||
|
||||
property string currentItemName: itemAt(currentIndex).objectName
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue