statistics - add node name in window title

(cherry picked from commit f25ce1700286d2b54965d0c1f5f3ad408e51d291)
This commit is contained in:
RetroPooh 2020-05-29 14:51:28 +03:00
parent fe46b0aaa1
commit b7b4f63eae
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

@ -36,6 +36,7 @@
#include <gui/settings/rsharesettings.h>
#include "gui/common/FilesDefs.h"
#include <gui/MainWindow.h>
#include <gui/statistics/TurtleRouterStatistics.h>
#include <gui/statistics/GlobalRouterStatistics.h>
#include <gui/statistics/GxsIdStatistics.h>
@ -105,6 +106,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()