mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-12 08:10:46 -04:00
Optimized fill of feed items by moving the fill of the hidden area to the first expand of the frame.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8514 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4cb081f4ff
commit
846d5f4f50
27 changed files with 152 additions and 41 deletions
|
@ -24,9 +24,23 @@
|
|||
/** Constructor */
|
||||
FeedItem::FeedItem(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
mWasExpanded = false;
|
||||
}
|
||||
|
||||
FeedItem::~FeedItem()
|
||||
{
|
||||
emit feedItemDestroyed(this);
|
||||
}
|
||||
|
||||
void FeedItem::expand(bool open)
|
||||
{
|
||||
if (open) {
|
||||
expandFill(!mWasExpanded);
|
||||
}
|
||||
|
||||
doExpand(open);
|
||||
|
||||
if (open) {
|
||||
mWasExpanded = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue