mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Added new statusbar widget about pending discovery informations.
You can enable it in the server settings. Recompile of GUI needed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3956 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3a9181bc85
commit
4b091a54d6
16 changed files with 1100 additions and 873 deletions
|
@ -69,6 +69,7 @@
|
|||
#include "statusbar/ratesstatus.h"
|
||||
#include "statusbar/dhtstatus.h"
|
||||
#include "statusbar/hashingstatus.h"
|
||||
#include "statusbar/discstatus.h"
|
||||
#include <retroshare/rsstatus.h>
|
||||
|
||||
#include <retroshare/rsiface.h>
|
||||
|
@ -296,6 +297,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||
hashingstatus = new HashingStatus();
|
||||
statusBar()->addPermanentWidget(hashingstatus);
|
||||
|
||||
discstatus = new DiscStatus();
|
||||
statusBar()->addPermanentWidget(discstatus);
|
||||
|
||||
ratesstatus = new RatesStatus();
|
||||
statusBar()->addPermanentWidget(ratesstatus);
|
||||
/** Status Bar end ******/
|
||||
|
@ -330,6 +334,7 @@ MainWindow::~MainWindow()
|
|||
delete natstatus;
|
||||
delete dhtstatus;
|
||||
delete ratesstatus;
|
||||
delete discstatus;
|
||||
MessengerWindow::releaseInstance();
|
||||
#ifdef UNFINISHED
|
||||
delete applicationWindow;
|
||||
|
@ -766,6 +771,10 @@ void MainWindow::updateStatus()
|
|||
if (dhtstatus)
|
||||
dhtstatus->getDHTStatus();
|
||||
|
||||
if (discstatus) {
|
||||
discstatus->update();
|
||||
}
|
||||
|
||||
if (nOnlineCount == 0)
|
||||
{
|
||||
trayIcon->setIcon(QIcon(IMAGE_NOONLINE));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue