mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
makes bandwidth details dialog properly close (and reopen) on ESC key
This commit is contained in:
parent
639858dfc9
commit
3f62edd68e
2 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,12 @@ void BandwidthDialog::paintEvent(QPaintEvent* event) {
|
||||||
this->setFixedSize(this->width(), this->height());
|
this->setFixedSize(this->width(), this->height());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BandwidthDialog::reject() {
|
||||||
|
|
||||||
|
// Just regularly close upon ESC
|
||||||
|
this->QDialog::close();
|
||||||
|
}
|
||||||
|
|
||||||
void BandwidthDialog::closeEvent(QCloseEvent* event) {
|
void BandwidthDialog::closeEvent(QCloseEvent* event) {
|
||||||
|
|
||||||
this->QDialog::closeEvent(event);
|
this->QDialog::closeEvent(event);
|
||||||
|
|
|
@ -26,6 +26,10 @@ signals:
|
||||||
|
|
||||||
void closed();
|
void closed();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
void reject();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// State <- data model held by BandwidthMeter
|
// State <- data model held by BandwidthMeter
|
||||||
|
|
Loading…
Reference in a new issue