From f088b8e2afaa8413d350ed178c7848522a97074b Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 11 Dec 2019 13:54:26 +0100 Subject: [PATCH] improved Topics details view --- .../src/gui/Posted/PostedListWidget.cpp | 2 + .../src/gui/Posted/PostedListWidget.ui | 281 ++++++++++-------- .../src/gui/qss/stylesheet/Standard.qss | 5 + 3 files changed, 166 insertions(+), 122 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp index 780846507..8a1973457 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp @@ -323,6 +323,8 @@ void PostedListWidget::insertPostedDetails(const RsPostedGroup &group) topicImage = QPixmap(TOPIC_DEFAULT_IMAGE); } ui->logoLabel->setPixmap(topicImage); + ui->namelabel->setText(QString::fromUtf8(group.mMeta.mGroupName.c_str())); + ui->poplabel->setText(QString::number( group.mMeta.mPop)); RetroShareLink link; diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.ui b/retroshare-gui/src/gui/Posted/PostedListWidget.ui index a5f84439c..cb9b906ef 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.ui +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.ui @@ -243,10 +243,77 @@ false - - - + + + + + + + + 64 + 64 + + + + + 64 + 64 + + + + :/icons/png/postedlinks.png + + + true + + + + + + + + 14 + + + + TextLabel + + + + + + + + + 6 + + + + + 75 + true + + + + Popularity + + + + + + + + 75 + true + + + + 0 + + + + @@ -261,57 +328,87 @@ - Posts: + Posts - + + + + 75 + true + + 0 - - - - - - - 64 - 64 - - - - - 64 - 64 - - - - :/icons/png/postedlinks.png - - - true - - - - - - - Qt::Vertical - - - - 20 - 28 - - - - - + + + + + 75 + true + + + + Created + + - + + + + unknown + + + + + + + + 75 + true + + + + Administrator: + + + + + + + unknown + + + true + + + + + + + + 75 + true + + + + Distribution: + + + + + + + unknown + + + + @@ -330,93 +427,33 @@ - + unknown - - - - - 75 - true - - - - Administrator: - - - - - - - unknown - - - true - - - - - - - - 75 - true - - - - Distribution: - - - - - - - unknown - - - - - - - - 75 - true - - - - Created: - - - - - - - unknown - - - - - - - - 75 - true - - - - Description: - - - - + + + + Qt::Horizontal + + + + 421 + 114 + + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index d95ab7cc9..75a23a3ef 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -861,3 +861,8 @@ GxsCommentDialog QComboBox#sortBox { font: bold; color: #0099cc; } + +PostedListWidget QTextBrowser#infoDescription { + background: transparent; + border: none; +}