mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add dialog to show statistics
This commit is contained in:
parent
687e7a1343
commit
f12b64d36a
9 changed files with 446 additions and 3 deletions
|
@ -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)
|
||||
|
@ -740,6 +743,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 **");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue