Merge pull request #2724 from csoler/v0.6-BugFixing_29

fixed keeping new zoom size when resizing the channel post window
This commit is contained in:
csoler 2023-05-07 17:10:13 +02:00 committed by GitHub
commit 782944727c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View File

@ -282,16 +282,12 @@ void BasePostedItem::readToggled(bool checked)
if (mInFill) { if (mInFill) {
return; return;
} }
setReadStatus(false, checked);
RsThread::async([this,checked]() RsThread::async([this,checked]()
{ {
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId()); RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
rsPosted->setPostReadStatus(msgPair, !checked); rsPosted->setPostReadStatus(msgPair, !checked);
RsQThreadUtils::postToObject( [checked,this]()
{
setReadStatus(false, checked);
}, this );
}); });
} }

View File

@ -504,6 +504,11 @@ GxsChannelPostsWidgetWithModel::GxsChannelPostsWidgetWithModel(const RsGxsGroupI
}, mEventHandlerId, RsEventType::GXS_CHANNELS ); }, mEventHandlerId, RsEventType::GXS_CHANNELS );
} }
void GxsChannelPostsWidgetWithModel::resizeEvent(QResizeEvent *e)
{
GxsMessageFrameWidget::resizeEvent(e);
updateZoomFactor(0);
}
void GxsChannelPostsWidgetWithModel::currentTabChanged(int t) void GxsChannelPostsWidgetWithModel::currentTabChanged(int t)
{ {
switch(t) switch(t)

View File

@ -138,6 +138,7 @@ protected:
/* GxsMessageFrameWidget */ /* GxsMessageFrameWidget */
virtual void setAllMessagesReadDo(bool read) override; virtual void setAllMessagesReadDo(bool read) override;
virtual void resizeEvent(QResizeEvent *e) override;
private slots: private slots:
void showPostDetails(); void showPostDetails();