From 66ecc8df769b7d3862844d2754adad75008442f1 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 16 Jan 2021 21:53:19 +0100 Subject: [PATCH] Fixed Group Chat toaster to use No Frame * Fixed Group Chat toaster to use No Frame * Hide unused widget on People Dialog --- .../src/gui/People/PeopleDialog.cpp | 1 + retroshare-gui/src/gui/People/PeopleDialog.ui | 80 +++---------------- .../src/gui/toaster/GroupChatToaster.cpp | 2 +- 3 files changed, 14 insertions(+), 69 deletions(-) diff --git a/retroshare-gui/src/gui/People/PeopleDialog.cpp b/retroshare-gui/src/gui/People/PeopleDialog.cpp index e06129905..42bf448a4 100644 --- a/retroshare-gui/src/gui/People/PeopleDialog.cpp +++ b/retroshare-gui/src/gui/People/PeopleDialog.cpp @@ -69,6 +69,7 @@ PeopleDialog::PeopleDialog(QWidget *parent) tabWidget->removeTab(1); //hide circle flow widget not functional yet pictureFlowWidgetExternal->hide(); + widgetExternal->hide(); //need erase QtCreator Layout first(for Win) delete idExternal->layout(); diff --git a/retroshare-gui/src/gui/People/PeopleDialog.ui b/retroshare-gui/src/gui/People/PeopleDialog.ui index bf5b7239f..416496a8a 100644 --- a/retroshare-gui/src/gui/People/PeopleDialog.ui +++ b/retroshare-gui/src/gui/People/PeopleDialog.ui @@ -20,76 +20,25 @@ - + + 0 + + + 0 + + + 0 + + 0 - - - QFrame::Box - - - QFrame::Sunken - - - - 2 - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - :/images/identity/identities_32.png - - - true - - - - - - - People - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - true - 1 + 0 @@ -129,7 +78,7 @@ - + @@ -234,11 +183,6 @@ - - StyledLabel - QLabel -
gui/common/StyledLabel.h
-
PictureFlow QWidget diff --git a/retroshare-gui/src/gui/toaster/GroupChatToaster.cpp b/retroshare-gui/src/gui/toaster/GroupChatToaster.cpp index 7a11c02dd..64d49f605 100644 --- a/retroshare-gui/src/gui/toaster/GroupChatToaster.cpp +++ b/retroshare-gui/src/gui/toaster/GroupChatToaster.cpp @@ -37,7 +37,7 @@ GroupChatToaster::GroupChatToaster(const RsPeerId &peerId, const QString &messag /* set informations */ ui.textLabel->setText(RsHtml().formatText(NULL, message, RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS | RSHTML_FORMATTEXT_CLEANSTYLE)); ui.toasterLabel->setText(QString::fromUtf8(rsPeers->getPeerName(peerId).c_str())); - ui.avatarWidget->setFrameType(AvatarWidget::STATUS_FRAME); + ui.avatarWidget->setFrameType(AvatarWidget::NO_FRAME); ui.avatarWidget->setDefaultAvatar(":/images/user/personal64.png"); ui.avatarWidget->setId(ChatId(peerId)); }