Cleanup downloadfromurldlg, statsdialog

This commit is contained in:
Chocobo1 2015-10-27 12:30:54 +08:00
parent 933f9f1451
commit 73047e3c84
6 changed files with 30 additions and 55 deletions

View file

@ -44,12 +44,13 @@ StatsDialog::StatsDialog(QWidget *parent)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
connect(ui->buttonOK, SIGNAL(clicked()), SLOT(close()));
connect(ui->buttonBox, SIGNAL(accepted()), SLOT(close()));
updateUI();
t = new QTimer(this);
t->setInterval(1500);
connect(t, SIGNAL(timeout()), SLOT(updateUI()));
t->start();
show();
}