mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
Fixed "jumping" of the items in channels and news feed when items are changed (load, toggle and remove).
Added workaround for QTBUG-3372. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5650 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
52c26dae30
commit
7502085b64
18 changed files with 195 additions and 16 deletions
|
@ -225,6 +225,11 @@ void ChannelFeed::createChannel()
|
|||
/*************************************************************************************/
|
||||
/*************************************************************************************/
|
||||
|
||||
QScrollArea *ChannelFeed::getScrollArea()
|
||||
{
|
||||
return scrollArea;
|
||||
}
|
||||
|
||||
void ChannelFeed::deleteFeedItem(QWidget */*item*/, uint32_t /*type*/)
|
||||
{
|
||||
}
|
||||
|
@ -587,9 +592,14 @@ void ChannelFeed::fillThreadAddMsg(const QString &channelId, const QString &chan
|
|||
progressBar->setValue(current * progressBar->maximum() / count);
|
||||
}
|
||||
|
||||
lockLayout(NULL, true);
|
||||
|
||||
ChanMsgItem *cmi = new ChanMsgItem(this, 0, channelId.toStdString(), channelMsgId.toStdString(), true);
|
||||
mChanMsgItems.push_back(cmi);
|
||||
verticalLayout->addWidget(cmi);
|
||||
cmi->show();
|
||||
|
||||
lockLayout(cmi, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue