From 99a106d277a45456547935d7921a5d2817c57642 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 18 Jan 2020 17:42:28 +0100 Subject: [PATCH] moved the "new" button on top right position and file label to the right --- .../src/gui/feeds/GxsChannelPostItem.cpp | 1 + .../src/gui/feeds/GxsChannelPostItem.ui | 34 +++++++++---------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp index 942532dfa..225f0a3ec 100644 --- a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp +++ b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp @@ -524,6 +524,7 @@ void GxsChannelPostItem::fill() void GxsChannelPostItem::fillExpandFrame() { ui->msgLabel->setText(RsHtml().formatText(NULL, QString::fromUtf8(mPost.mMsg.c_str()), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS)); + ui->msgFrame->setVisible(!mPost.mMsg.empty()); } QString GxsChannelPostItem::messageName() diff --git a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.ui b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.ui index b2e911a79..0e15c0a4d 100644 --- a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.ui +++ b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.ui @@ -118,6 +118,13 @@ + + + + New + + + @@ -208,13 +215,6 @@ - - - - New - - - @@ -256,16 +256,6 @@ - - - - fileLabel - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - @@ -339,6 +329,16 @@ + + + + fileLabel + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + +