- Moved the created GxsIdRSTreeWidgetItem from the forum fill thread to the main thread so the signal to fill the id can be processed.

- Removed QTimer from GxsIdTreeWidgetItem and GxsIdRSTreeWidgetItem.
- Added new tick signal (every second) on Rshare to fill the id.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6238 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-03-17 16:31:30 +00:00
parent c74a36fff8
commit 813a8fad34
5 changed files with 27 additions and 39 deletions

View file

@ -713,10 +713,10 @@ void GxsForumThreadWidget::fillThreadFinished()
// clear list
thread->mItems.clear();
} else {
fillThreads (thread->mItems, thread->mExpandNewMessages, thread->mItemToExpand);
fillThreads(thread->mItems, thread->mExpandNewMessages, thread->mItemToExpand);
// cleanup list
cleanupItems (thread->mItems);
cleanupItems(thread->mItems);
}
ui->threadTreeWidget->setSortingEnabled(true);
@ -792,6 +792,8 @@ void GxsForumThreadWidget::forceUpdateDisplay()
QTreeWidgetItem *GxsForumThreadWidget::convertMsgToThreadWidget(const RsGxsForumMsg &msg, bool useChildTS, uint32_t filterColumn)
{
GxsIdRSTreeWidgetItem *item = new GxsIdRSTreeWidgetItem(mThreadCompareRole);
item->moveToThread(ui->threadTreeWidget->thread());
QString text;
item->setText(COLUMN_THREAD_TITLE, QString::fromUtf8(msg.mMeta.mMsgName.c_str()));