mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +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());
|
||||
}
|
||||
|
||||
void BandwidthDialog::reject() {
|
||||
|
||||
// Just regularly close upon ESC
|
||||
this->QDialog::close();
|
||||
}
|
||||
|
||||
void BandwidthDialog::closeEvent(QCloseEvent* event) {
|
||||
|
||||
this->QDialog::closeEvent(event);
|
||||
|
|
|
@ -26,6 +26,10 @@ signals:
|
|||
|
||||
void closed();
|
||||
|
||||
public slots:
|
||||
|
||||
void reject();
|
||||
|
||||
protected:
|
||||
|
||||
// State <- data model held by BandwidthMeter
|
||||
|
|
Loading…
Reference in a new issue