mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
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:
commit
782944727c
@ -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 );
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user