mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 15:39:36 -05:00
added additional button to show statistics window in settings->node
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f803f1552c
commit
18a4bef840
2
TODO.txt
2
TODO.txt
@ -41,7 +41,7 @@ To be done
|
||||
needs the same space as the permission matrix (happens on windows + linux; can be "fixed" by closing and reopen the setting window)
|
||||
(from sehraf)
|
||||
|
||||
0015 [ ] The new statistics windows is really nice and everybody should see it -> add a link to it somewhere in settings
|
||||
0015 [X] The new statistics windows is really nice and everybody should see it -> add a link to it somewhere in settings
|
||||
(or wherever suitable) (from sehraf) cyril: there's a menu in the bottom right corner ofthe main window to get it.
|
||||
Otherwise, we could merge it as tabs in options->server, but I don't really like this option.
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "util/DateTime.h"
|
||||
#include <gui/RetroShareLink.h>
|
||||
#include <gui/profile/ProfileManager.h>
|
||||
#include <gui/statistics/StatisticsWindow.h>
|
||||
|
||||
#include <retroshare/rspeers.h> //for rsPeers variable
|
||||
#include <retroshare/rsdisc.h> //for rsPeers variable
|
||||
@ -47,6 +48,7 @@ CryptoPage::CryptoPage(QWidget * parent, Qt::WindowFlags flags)
|
||||
connect(ui.saveButton, SIGNAL(clicked()), this, SLOT(fileSaveAs()));
|
||||
connect(ui._includeSignatures_CB, SIGNAL(toggled(bool)), this, SLOT(load()));
|
||||
connect(ui._copyLink_PB, SIGNAL(clicked()), this, SLOT(copyRSLink()));
|
||||
connect(ui.showStats_PB, SIGNAL(clicked()), this, SLOT(showStats()));
|
||||
|
||||
// hide profile manager as it causes bugs when generating a new profile.
|
||||
//ui.profile_Button->hide() ;
|
||||
@ -164,3 +166,8 @@ bool CryptoPage::fileSaveAs()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void CryptoPage::showStats()
|
||||
{
|
||||
StatisticsWindow::showYourself();
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ class CryptoPage : public ConfigPage
|
||||
void profilemanager();
|
||||
bool fileSave();
|
||||
bool fileSaveAs();
|
||||
void showStats();
|
||||
|
||||
private:
|
||||
QString fileName;
|
||||
|
@ -397,6 +397,13 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showStats_PB">
|
||||
<property name="text">
|
||||
<string>show statistics window</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
|
Loading…
Reference in New Issue
Block a user