mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Add dialog to show statistics
This commit is contained in:
committed by
sledgehammer999
parent
d74e96f65f
commit
11148fcda6
@@ -123,6 +123,7 @@ MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMa
|
||||
actionSet_global_download_limit->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/download.png")));
|
||||
actionCreate_torrent->setIcon(IconProvider::instance()->getIcon("document-edit"));
|
||||
actionAbout->setIcon(IconProvider::instance()->getIcon("help-about"));
|
||||
actionStatistics->setIcon(IconProvider::instance()->getIcon("office-chart-bar"));
|
||||
actionBugReport->setIcon(IconProvider::instance()->getIcon("tools-report-bug"));
|
||||
actionDecreasePriority->setIcon(IconProvider::instance()->getIcon("go-down"));
|
||||
actionDelete->setIcon(IconProvider::instance()->getIcon("list-remove"));
|
||||
@@ -361,6 +362,8 @@ MainWindow::~MainWindow() {
|
||||
delete m_executionLog;
|
||||
if (aboutDlg)
|
||||
delete aboutDlg;
|
||||
if (statsDlg)
|
||||
delete statsDlg;
|
||||
if (options)
|
||||
delete options;
|
||||
if (downloadFromURLDialog)
|
||||
@@ -748,6 +751,13 @@ void MainWindow::on_actionAbout_triggered() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionStatistics_triggered() {
|
||||
if (statsDlg)
|
||||
statsDlg->setFocus();
|
||||
else
|
||||
statsDlg = new StatsDialog(this);
|
||||
}
|
||||
|
||||
void MainWindow::showEvent(QShowEvent *e) {
|
||||
qDebug("** Show Event **");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user