Fixed comments to open the Post & fixed background selection color issue on Fusion style

* Fixed Comments Button to open the Post
* Fixed background selection color issue on Fusion style
* Fixed issue when exapnding the Notes Text
This commit is contained in:
defnax 2020-12-06 15:10:50 +01:00
parent e5c9c47c91
commit 5341db5afe
2 changed files with 17 additions and 6 deletions

View File

@ -35,6 +35,7 @@
#include "gui/MainWindow.h"
#include "gui/Identity/IdDialog.h"
#include "PhotoView.h"
#include "gui/Posted/PostedDialog.h"
#include "ui_PostedItem.h"
#include <retroshare/rsposted.h>
@ -266,14 +267,14 @@ void BasePostedItem::loadComments()
if (mFeedHolder)
{
QString title = QString::fromUtf8(mPost.mMeta.mMsgName.c_str());
/* window will destroy itself! */
PostedDialog *postedDialog = dynamic_cast<PostedDialog*>(MainWindow::getPage(MainWindow::Posted));
#warning (csoler) Posted item versions not handled yet. When it is the case, start here.
if (!postedDialog)
return ;
QVector<RsGxsMessageId> post_versions ;
post_versions.push_back(mPost.mMeta.mMsgId) ;
mFeedHolder->openComments(0, mPost.mMeta.mGroupId, post_versions,mPost.mMeta.mMsgId, title);
MainWindow::showWindow(MainWindow::Posted);
postedDialog->navigate(mPost.mMeta.mGroupId, mPost.mMeta.mMsgId) ;
}
}
void BasePostedItem::readToggled(bool checked)
@ -740,4 +741,5 @@ void PostedItem::toggleNotes()
ui->frame_notes->hide();
}
emit sizeChanged(this);
}

View File

@ -611,6 +611,9 @@
<height>600</height>
</size>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
@ -662,6 +665,9 @@
</item>
<item row="2" column="0">
<widget class="QFrame" name="frame_notes">
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
@ -686,6 +692,9 @@
</property>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="notes">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>