makes bandwidth details dialog properly close (and reopen) on ESC key

This commit is contained in:
tosh 2013-07-01 10:53:49 +02:00
parent 639858dfc9
commit 3f62edd68e
2 changed files with 10 additions and 0 deletions

View file

@ -59,6 +59,12 @@ void BandwidthDialog::paintEvent(QPaintEvent* event) {
this->setFixedSize(this->width(), this->height());
}
void BandwidthDialog::reject() {
// Just regularly close upon ESC
this->QDialog::close();
}
void BandwidthDialog::closeEvent(QCloseEvent* event) {
this->QDialog::closeEvent(event);

View file

@ -26,6 +26,10 @@ signals:
void closed();
public slots:
void reject();
protected:
// State <- data model held by BandwidthMeter