mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed update when expanding in boards
This commit is contained in:
parent
5261be8ad4
commit
e59ba49240
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user