mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-24 22:09:34 -04:00
fixed update when expanding in boards
This commit is contained in:
parent
5261be8ad4
commit
e59ba49240
2 changed files with 8 additions and 3 deletions
|
@ -175,7 +175,7 @@ void PostedPostDelegate::expandItem(RsGxsMessageId msgId,bool expanded)
|
||||||
else
|
else
|
||||||
mExpandedItems.erase(msgId);
|
mExpandedItems.erase(msgId);
|
||||||
|
|
||||||
mPostListWidget->forceRedraw();
|
mPostListWidget->redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t PostedPostDelegate::displayFlags(const RsGxsMessageId &id) const
|
uint8_t PostedPostDelegate::displayFlags(const RsGxsMessageId &id) const
|
||||||
|
@ -659,7 +659,11 @@ void PostedListWidgetWithModel::forceRedraw()
|
||||||
if(mPostedPostsModel)
|
if(mPostedPostsModel)
|
||||||
mPostedPostsModel->deepUpdate();
|
mPostedPostsModel->deepUpdate();
|
||||||
}
|
}
|
||||||
|
void PostedListWidgetWithModel::redraw()
|
||||||
|
{
|
||||||
|
if(mPostedPostsModel)
|
||||||
|
mPostedPostsModel->triggerRedraw();
|
||||||
|
}
|
||||||
void PostedListWidgetWithModel::updateDisplay(bool complete)
|
void PostedListWidgetWithModel::updateDisplay(bool complete)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_CHANNEL
|
#ifdef DEBUG_CHANNEL
|
||||||
|
|
|
@ -99,7 +99,8 @@ public:
|
||||||
virtual bool navigate(const RsGxsMessageId&) override;
|
virtual bool navigate(const RsGxsMessageId&) override;
|
||||||
|
|
||||||
void updateDisplay(bool complete) ;
|
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
|
#ifdef TODO
|
||||||
/* FeedHolder */
|
/* FeedHolder */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue