mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
removed updateTotals() method. Replaced it with costless on-the-fly update of totals
This commit is contained in:
parent
a00d2c912c
commit
e66c0d1349
6 changed files with 69 additions and 20 deletions
|
@ -196,7 +196,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags)
|
|||
this->setWindowIcon(QIcon(QString::fromUtf8(":/icons/logo_128.png")));
|
||||
|
||||
/* Create all the dialogs of which we only want one instance */
|
||||
_bandwidthGraph = new BandwidthGraph();
|
||||
_bandwidthGraph = NULL ;
|
||||
|
||||
#ifdef UNFINISHED
|
||||
applicationWindow = new ApplicationWindow();
|
||||
|
@ -559,7 +559,7 @@ void MainWindow::createTrayIcon()
|
|||
#ifdef ENABLE_WEBUI
|
||||
trayMenu->addAction(QIcon(":/images/emblem-web.png"), tr("Show web interface"), this, SLOT(showWebinterface()));
|
||||
#endif // ENABLE_WEBUI
|
||||
trayMenu->addAction(QIcon(IMAGE_BWGRAPH), tr("Bandwidth Graph"), _bandwidthGraph, SLOT(showWindow()));
|
||||
trayMenu->addAction(QIcon(IMAGE_BWGRAPH), tr("Bandwidth Graph"), this, SLOT(showBandwidthGraph()));
|
||||
trayMenu->addAction(QIcon(IMAGE_DHT), tr("Statistics"), this, SLOT(showStatisticsWindow()));
|
||||
|
||||
|
||||
|
@ -585,6 +585,14 @@ void MainWindow::createTrayIcon()
|
|||
trayIcon->show();
|
||||
}
|
||||
|
||||
void MainWindow::showBandwidthGraph()
|
||||
{
|
||||
if(_bandwidthGraph == NULL)
|
||||
_bandwidthGraph = new BandwidthGraph();
|
||||
|
||||
_bandwidthGraph->showWindow();
|
||||
}
|
||||
|
||||
void MainWindow::createNotifyIcons()
|
||||
{
|
||||
/* create notify icons */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue