From f54be58088fe92d62ea51291e965f4c19b4d3ae1 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 12 May 2023 20:41:27 +0200 Subject: [PATCH] Use ElidedLabel on PeerItem to not stretch the widget * Use ElidedLabel on PeerItem to not stretch the widget --- retroshare-gui/src/gui/feeds/PeerItem.ui | 179 ++++++++++++----------- 1 file changed, 95 insertions(+), 84 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/PeerItem.ui b/retroshare-gui/src/gui/feeds/PeerItem.ui index cf66466f3..603002f7f 100644 --- a/retroshare-gui/src/gui/feeds/PeerItem.ui +++ b/retroshare-gui/src/gui/feeds/PeerItem.ui @@ -7,7 +7,7 @@ 0 0 476 - 262 + 283 @@ -59,6 +59,9 @@ 0 + + 0 + @@ -75,90 +78,11 @@ - - - - - - - 17 - - - - Peer Name - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - - 0 - 0 - - - - - 11 - 75 - true - true - - - - Connected - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - - - - Qt::Horizontal - - - - 190 - 13 - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - TextLabel - - - Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing - - - - - - + + + 6 + @@ -266,6 +190,87 @@ + + + + 6 + + + + + + 0 + 0 + + + + + 75 + true + + + + TextLabel + + + Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing + + + + + + + + 17 + + + + Peer Name + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + + + + Qt::Horizontal + + + + 190 + 13 + + + + + + + + + 0 + 0 + + + + + 11 + 75 + true + true + + + + Connected + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + @@ -526,6 +531,12 @@
gui/common/AvatarWidget.h
1 + + ElidedLabel + QLabel +
gui/common/ElidedLabel.h
+ 1 +