fixed update when expanding in boards

This commit is contained in:
csoler 2021-02-08 23:08:15 +01:00
parent 5261be8ad4
commit e59ba49240
2 changed files with 8 additions and 3 deletions

View File

@ -175,7 +175,7 @@ void PostedPostDelegate::expandItem(RsGxsMessageId msgId,bool expanded)
else
mExpandedItems.erase(msgId);
mPostListWidget->forceRedraw();
mPostListWidget->redraw();
}
uint8_t PostedPostDelegate::displayFlags(const RsGxsMessageId &id) const
@ -659,7 +659,11 @@ void PostedListWidgetWithModel::forceRedraw()
if(mPostedPostsModel)
mPostedPostsModel->deepUpdate();
}
void PostedListWidgetWithModel::redraw()
{
if(mPostedPostsModel)
mPostedPostsModel->triggerRedraw();
}
void PostedListWidgetWithModel::updateDisplay(bool complete)
{
#ifdef DEBUG_CHANNEL

View File

@ -99,7 +99,8 @@ public:
virtual bool navigate(const RsGxsMessageId&) override;
void updateDisplay(bool complete) ;
void forceRedraw(); // does not re-load the data, but makes sure the underlying model triggers a full redraw, recomputes sizes, etc.
void forceRedraw(); // does not re-load the data, but makes sure the underlying model triggers a full redraw, recomputes indexes, etc.
void redraw(); // does not re-load the data, but makes sure the underlying model triggers a full redraw, recomputes only sizes.
#ifdef TODO
/* FeedHolder */