mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-21 23:40:26 -04:00
Added threaded loading of channel posts.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7480 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2d2e3881cf
commit
7a65ad1a14
9 changed files with 277 additions and 63 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <QLabel>
|
||||
#include <QWidget>
|
||||
#include <QLineEdit>
|
||||
#include <QProgressBar>
|
||||
|
||||
#include "UIStateHelper.h"
|
||||
#include "RSTreeWidget.h"
|
||||
|
@ -441,7 +442,16 @@ void UIStateHelper::updateData(UIStateHelperData *data)
|
|||
UIStates states = it.value();
|
||||
|
||||
if (states & (UISTATE_LOADING_VISIBLE | UISTATE_LOADING_INVISIBLE | UISTATE_ACTIVE_VISIBLE | UISTATE_ACTIVE_INVISIBLE)) {
|
||||
widget->setVisible(isWidgetVisible(widget));
|
||||
bool visible = isWidgetVisible(widget);
|
||||
widget->setVisible(visible);
|
||||
|
||||
if (!visible) {
|
||||
/* Reset progressbar */
|
||||
QProgressBar *progressBar = dynamic_cast<QProgressBar*>(widget);
|
||||
if (progressBar) {
|
||||
progressBar->setValue(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (states & (UISTATE_LOADING_ENABLED | UISTATE_LOADING_DISABLED | UISTATE_ACTIVE_ENABLED | UISTATE_ACTIVE_DISABLED)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue