From 776141a8fd5b83385d95cabc13140c0259d1f2e0 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 9 Feb 2021 20:34:38 +0100 Subject: [PATCH 1/2] Fixed refused connection notify disable msg button --- retroshare-gui/src/gui/feeds/PeerItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/feeds/PeerItem.cpp b/retroshare-gui/src/gui/feeds/PeerItem.cpp index a03572f61..7961abce2 100644 --- a/retroshare-gui/src/gui/feeds/PeerItem.cpp +++ b/retroshare-gui/src/gui/feeds/PeerItem.cpp @@ -206,7 +206,7 @@ void PeerItem::updateItem() /* do buttons */ chatButton->setEnabled(details.state & RS_PEER_STATE_CONNECTED); - if (details.state & RS_PEER_STATE_FRIEND) + if (details.state & RS_PEER_STATE_CONNECTED) { sendmsgButton->setEnabled(true); } From fbc59913f97e735bc199e1c7a97afc37877216dd Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 9 Feb 2021 22:56:16 +0100 Subject: [PATCH 2/2] Attempt to fix some layout issues on comments feeds --- .../src/gui/feeds/BoardsCommentsItem.cpp | 2 + .../src/gui/feeds/BoardsCommentsItem.ui | 178 ++++---- .../src/gui/feeds/ChannelsCommentsItem.cpp | 2 + .../src/gui/feeds/ChannelsCommentsItem.ui | 392 +++++++++--------- 4 files changed, 289 insertions(+), 285 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp index ebc34ac31..7db1f023f 100644 --- a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp +++ b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.cpp @@ -434,6 +434,8 @@ void BoardsCommentsItem::setComment(const RsGxsComment& cmt) if(idDetails.mAvatar.mSize == 0 || !GxsIdDetails::loadPixmapFromData(idDetails.mAvatar.mData, idDetails.mAvatar.mSize, pixmap,GxsIdDetails::SMALL)) pixmap = GxsIdDetails::makeDefaultIcon(cmt.mMeta.mAuthorId,GxsIdDetails::SMALL); ui->avatarLabel->setPixmap(pixmap); + + emit sizeChanged(this); } void BoardsCommentsItem::setCommentsSize(int comNb) diff --git a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.ui b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.ui index 656c7ccbf..ca3fd3550 100644 --- a/retroshare-gui/src/gui/feeds/BoardsCommentsItem.ui +++ b/retroshare-gui/src/gui/feeds/BoardsCommentsItem.ui @@ -7,7 +7,7 @@ 0 0 755 - 175 + 144 @@ -49,6 +49,43 @@ 8 + + + + + + I like this + + + + + + + + + + + 75 + true + + + + 0 + + + + + + + I dislike this + + + + + + + + @@ -201,7 +238,55 @@ - + + + + + + + 0 + 0 + + + + + 70 + 70 + + + + + 70 + 70 + + + + + + + true + + + Qt::AlignCenter + + + + + + + Qt::Vertical + + + + 20 + 10 + + + + + + + @@ -268,92 +353,7 @@ - - - - - - - 0 - 0 - - - - - 70 - 70 - - - - - 70 - 70 - - - - - - - true - - - Qt::AlignCenter - - - - - - - - - I like this - - - - - - - - - - - 75 - true - - - - 0 - - - - - - - I dislike this - - - - - - - - - - - - Qt::Vertical - - - - 58 - 10 - - - - - - - + @@ -412,7 +412,7 @@ - + 0 0 diff --git a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp index 34fa7c75a..0ede46cc9 100644 --- a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp +++ b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp @@ -337,6 +337,8 @@ void ChannelsCommentsItem::loadMessage() RsQThreadUtils::postToObject( [this]() { removeItem(); }, this ); } }); + + emit sizeChanged(this); } void ChannelsCommentsItem::loadComment() diff --git a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.ui b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.ui index 5697aa0c2..4ccd1d8ee 100644 --- a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.ui +++ b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.ui @@ -7,7 +7,7 @@ 0 0 755 - 173 + 143 @@ -49,6 +49,43 @@ 8 + + + + + + I like this + + + + + + + + + + + 75 + true + + + + 0 + + + + + + + I dislike this + + + + + + + + @@ -201,7 +238,164 @@ - + + + + + 0 + 0 + + + + + + + + 3 + + + 3 + + + 9 + + + 0 + + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 288 + 17 + + + + + + + + + 75 + true + + + + DateTime + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + + + + + 0 + 0 + + + + + 75 + true + + + + Name + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + MS Sans Serif + 10 + + + + Comm value + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + + + + + + + + + + + + 0 + 0 + + + + + 70 + 70 + + + + + 70 + 70 + + + + + + + true + + + Qt::AlignCenter + + + + + + + Qt::Vertical + + + + 58 + 10 + + + + + + + @@ -268,200 +462,6 @@ - - - - - - - 0 - 0 - - - - - 70 - 70 - - - - - 70 - 70 - - - - - - - true - - - Qt::AlignCenter - - - - - - - - - I like this - - - - - - - - - - - 75 - true - - - - 0 - - - - - - - I dislike this - - - - - - - - - - - - Qt::Vertical - - - - 58 - 40 - - - - - - - - - - - 0 - 0 - - - - - - - - 3 - - - 3 - - - 9 - - - 0 - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 288 - 17 - - - - - - - - - 75 - true - - - - DateTime - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - - 0 - 0 - - - - - 75 - true - - - - Name - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - MS Sans Serif - 10 - - - - Comm value - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse - - - - - -