mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 21:59:02 -04:00
added new source statusbar folder
added for show each vote with the correct icon in Link Cloud git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@608 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4c8114d93d
commit
ad5694c8e5
6 changed files with 155 additions and 4 deletions
|
@ -40,6 +40,7 @@
|
|||
#include "games/qbackgammon/bgwindow.h"
|
||||
#include "smplayer.h"
|
||||
|
||||
#include "statusbar/peerstatus.h"
|
||||
#include "Preferences/PreferencesWindow.h"
|
||||
#include "Settings/gsettingswin.h"
|
||||
#include "util/rsversion.h"
|
||||
|
@ -213,7 +214,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||
connect(transfersDialog, SIGNAL(playFiles( QStringList )), this, SLOT(playFiles( QStringList )));
|
||||
|
||||
#ifdef RS_RELEASE_VERSION
|
||||
//addAction(new QAction(QIcon(IMAGE_BLOCK), tr("Unfinished"), ui.toolBar), SLOT(showApplWindow()));
|
||||
addAction(new QAction(QIcon(IMAGE_BLOCK), tr("Unfinished"), ui.toolBar), SLOT(showApplWindow()));
|
||||
|
||||
|
||||
#else
|
||||
|
@ -257,9 +258,9 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||
ui.toolBarservice->addSeparator();
|
||||
|
||||
#endif
|
||||
|
||||
//peerstatus = new PeerStatus();
|
||||
//statusBar()->addWidget(peerstatus);
|
||||
statusBar()->addWidget(statusPeers = new QLabel(tr("Online: 0 |Friends: 0|Network: 0")));
|
||||
//statusPeers->setPixmap(QPixmap::QPixmap(":/images/.png"));
|
||||
statusBar()->addPermanentWidget(statusRates = new QLabel(tr("Down: 0.0 | Up: 0.0 ")));
|
||||
//statusBar()->addPermanentWidget(statusPeers = new QLabel(tr("Online: 0 |Friends: 0|Network: 0")));
|
||||
|
||||
|
@ -352,6 +353,11 @@ void MainWindow::updateStatus()
|
|||
|
||||
}
|
||||
|
||||
void MainWindow::peerstat()
|
||||
{
|
||||
peerstatus->setPeerStatus();
|
||||
}
|
||||
|
||||
|
||||
/** Creates a new action associated with a config page. */
|
||||
QAction* MainWindow::createPageAction(QIcon img, QString text, QActionGroup *group)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue