mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -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
|
@ -400,11 +400,16 @@ void NewsFeed::addFeedItem(QWidget *item)
|
|||
|
||||
sendNewsFeedChanged();
|
||||
|
||||
lockLayout(NULL, true);
|
||||
|
||||
if (Settings->getAddFeedsAtEnd()) {
|
||||
verticalLayout->addWidget(item);
|
||||
} else {
|
||||
verticalLayout->insertWidget(0, item);
|
||||
}
|
||||
item->show();
|
||||
|
||||
lockLayout(item, false);
|
||||
}
|
||||
|
||||
void NewsFeed::addFeedItemIfUnique(QWidget *item, int itemType, const std::string &sslId, bool replace)
|
||||
|
@ -742,6 +747,11 @@ void NewsFeed::addFeedItemFilesNew(RsFeedItem &/*fi*/)
|
|||
}
|
||||
|
||||
/* FeedHolder Functions (for FeedItem functionality) */
|
||||
QScrollArea *NewsFeed::getScrollArea()
|
||||
{
|
||||
return scrollArea;
|
||||
}
|
||||
|
||||
void NewsFeed::deleteFeedItem(QWidget *item, uint32_t /*type*/)
|
||||
{
|
||||
#ifdef NEWS_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue