Skip to content
Snippets Groups Projects
Commit c4c2415d authored by Liam Coursodon's avatar Liam Coursodon Committed by Liam Coursodon
Browse files

Connection monitoring : Correct layout after migration

Change-Id: I8c480be77e1ef0a8778d4e8420523b71c76c4555
parent b2318c7f
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ ConnectionInfoListModel::data(const QModelIndex& index, int role) const
}
const auto peerId = peerIds_[index.row()];
const auto peerData = peerData_[peerId];
switch (role) {
case ConnectionInfoList::ChannelsMap: {
QVariantMap channelsMapMap;
......
......@@ -29,6 +29,7 @@ ListView {
height: contentItem.childrenRect.height
anchors.top: parent.top
anchors.topMargin: 10
width: parent.width
spacing: 5
cacheBuffer: 10
......@@ -51,7 +52,7 @@ ListView {
id: profile
height: 50
Layout.leftMargin: 5
Layout.preferredWidth: 210
Layout.preferredWidth: 200
color: JamiTheme.transparentColor
Text {
id: textImage
......@@ -65,6 +66,7 @@ ListView {
Rectangle {
id: device
Layout.fillWidth: true
Layout.minimumWidth: 50
height: 50
color: JamiTheme.transparentColor
Text {
......@@ -106,6 +108,7 @@ ListView {
}
model: ConnectionInfoListModel
Timer {
interval: 1000
running: root.visible
......@@ -125,6 +128,7 @@ ListView {
ListView {
id: listView2
height: 40 * Count
width: parent.width
anchors.top: delegate.top
......@@ -141,7 +145,7 @@ ListView {
id: profile
height: 50
Layout.leftMargin: 5
Layout.preferredWidth: 210
Layout.preferredWidth: 200
color: JamiTheme.transparentColor
Avatar {
id: avatar
......@@ -174,6 +178,7 @@ ListView {
Text {
id: usernameText
color: JamiTheme.textColor
anchors.fill: parent
text: UtilsAdapter.getBestNameForUri(CurrentAccount.id, PeerId)
elide: Text.ElideRight
}
......@@ -227,6 +232,7 @@ ListView {
Rectangle {
height: 40
Layout.fillWidth: true
Layout.minimumWidth: 50
color: delegate.color
Text {
id: delegateDeviceText
......
......@@ -30,6 +30,7 @@ SettingsPageBase {
id: root
Layout.fillWidth: true
Layout.minimumWidth: 700
readonly property string baseProviderPrefix: 'image://avatarImage'
......@@ -96,7 +97,13 @@ SettingsPageBase {
Rectangle {
id: connectionMonitoringTable
height: listview.childrenRect.height + 60
width: tableWidth
width: {
if (tableWidth > 477) {
return tableWidth;
} else {
return 477;
}
}
color: JamiTheme.transparentColor
ConnectionMonitoringTable {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment