statistics - add node name in window title

This commit is contained in:
RetroPooh 2020-05-29 14:51:28 +03:00
parent 0f46d393c2
commit 6502a72519
2 changed files with 7 additions and 0 deletions

View File

@ -186,6 +186,11 @@ public:
ToasterDisable *toasterDisableInstance();
SysTrayStatus *sysTrayStatusInstance();
QString get_nameAndLocation()
{
return nameAndLocation;
}
static bool hiddenmode;
public slots:

View File

@ -35,6 +35,7 @@
#include <gui/settings/rsharesettings.h>
#include <gui/MainWindow.h>
#include <gui/statistics/TurtleRouterStatistics.h>
#include <gui/statistics/GlobalRouterStatistics.h>
#include <gui/statistics/GxsTransportStatistics.h>
@ -102,6 +103,7 @@ StatisticsWindow::StatisticsWindow(QWidget *parent) :
int toolSize = Settings->getToolButtonSize();
ui->toolBar->setToolButtonStyle(Settings->getToolButtonStyle());
ui->toolBar->setIconSize(QSize(toolSize,toolSize));
setWindowTitle("RetroShare Statistics - " + MainWindow::getInstance()->get_nameAndLocation());
}
StatisticsWindow::~StatisticsWindow()