From 77d275c7f0dd2fe9a938ce39ed457fee4cc906bb Mon Sep 17 00:00:00 2001 From: defnax Date: Sun, 7 May 2023 20:22:24 +0200 Subject: [PATCH 1/3] Fixed margins to remove wasting spaces Fixed margins to remove wasting spaces Fixed to hide desc groupbox instead of only desc text, --- retroshare-gui/src/gui/TheWire/PulseAddDialog.ui | 12 ++++++++++++ retroshare-gui/src/gui/TheWire/PulseMessage.ui | 9 +++++++++ retroshare-gui/src/gui/TheWire/PulseReply.ui | 12 ++++++++++++ retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp | 2 +- retroshare-gui/src/gui/gxs/GxsGroupDialog.ui | 2 +- 5 files changed, 35 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/TheWire/PulseAddDialog.ui b/retroshare-gui/src/gui/TheWire/PulseAddDialog.ui index 25738136d..c09119a40 100644 --- a/retroshare-gui/src/gui/TheWire/PulseAddDialog.ui +++ b/retroshare-gui/src/gui/TheWire/PulseAddDialog.ui @@ -235,6 +235,18 @@ + + 0 + + + 0 + + + 0 + + + 0 + diff --git a/retroshare-gui/src/gui/TheWire/PulseMessage.ui b/retroshare-gui/src/gui/TheWire/PulseMessage.ui index 09b64f780..46e4d8cd5 100644 --- a/retroshare-gui/src/gui/TheWire/PulseMessage.ui +++ b/retroshare-gui/src/gui/TheWire/PulseMessage.ui @@ -14,9 +14,18 @@ Form + + 0 + 0 + + 0 + + + 0 + diff --git a/retroshare-gui/src/gui/TheWire/PulseReply.ui b/retroshare-gui/src/gui/TheWire/PulseReply.ui index 3f85dc164..497d606de 100644 --- a/retroshare-gui/src/gui/TheWire/PulseReply.ui +++ b/retroshare-gui/src/gui/TheWire/PulseReply.ui @@ -25,6 +25,18 @@ + + 0 + + + 0 + + + 0 + + + 0 + diff --git a/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp b/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp index 8b5923657..5afb5414b 100644 --- a/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp +++ b/retroshare-gui/src/gui/gxs/GxsGroupDialog.cpp @@ -370,7 +370,7 @@ void GxsGroupDialog::setupVisibility() ui.groupLogo->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_ICON); - ui.groupDesc->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_DESCRIPTION); + ui.groupBox->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_DESCRIPTION); ui.distribGroupBox->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_DISTRIBUTION); ui.distributionLabel->setVisible(mEnabledFlags & GXS_GROUP_FLAGS_DISTRIBUTION); diff --git a/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui b/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui index 11dcb0613..867652e01 100644 --- a/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui +++ b/retroshare-gui/src/gui/gxs/GxsGroupDialog.ui @@ -7,7 +7,7 @@ 0 0 746 - 590 + 533 From 9c6bfc784712dbdb37ed46d05257e98124e5a6f8 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 9 May 2023 10:33:34 +0200 Subject: [PATCH 2/3] added missing updateIcon() in messageUserNotify --- retroshare-gui/src/gui/msgs/MessageUserNotify.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/msgs/MessageUserNotify.cpp b/retroshare-gui/src/gui/msgs/MessageUserNotify.cpp index 5414802e0..b29f264fb 100644 --- a/retroshare-gui/src/gui/msgs/MessageUserNotify.cpp +++ b/retroshare-gui/src/gui/msgs/MessageUserNotify.cpp @@ -94,7 +94,8 @@ void MessageUserNotify::handleEvent_main_thread(std::shared_ptr e std::set::const_iterator it; - switch (fe->mMailStatusEventCode) { + switch (fe->mMailStatusEventCode) + { case RsMailStatusEventCode::NEW_MESSAGE: for (it = fe->mChangedMsgIds.begin(); it != fe->mChangedMsgIds.end(); ++it) { MessageInfo msgInfo; @@ -102,7 +103,8 @@ void MessageUserNotify::handleEvent_main_thread(std::shared_ptr e NotifyQt::getInstance()->addToaster(RS_POPUP_MSG, msgInfo.msgId.c_str(), msgInfo.title.c_str(), msgInfo.msg.c_str() ); } } - break; + updateIcon(); + break; case RsMailStatusEventCode::MESSAGE_CHANGED: case RsMailStatusEventCode::MESSAGE_REMOVED: updateIcon(); From f54be58088fe92d62ea51291e965f4c19b4d3ae1 Mon Sep 17 00:00:00 2001 From: defnax Date: Fri, 12 May 2023 20:41:27 +0200 Subject: [PATCH 3/3] 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 +