Commit e0c49286 authored by Thiago Santini's avatar Thiago Santini

Fixes widget reaction on minimize

parent 459bc499
......@@ -18,6 +18,7 @@ signals:
public slots:
protected:
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE { Q_UNUSED(event) emit closed(false); }
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE { Q_UNUSED(event) emit closed(false); }
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE { emit keyPress(event); }
void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE { emit keyRelease(event); }
......
......@@ -433,6 +433,8 @@ void MainWindow::widgetButtonReact(QMainWindow *window, bool checked)
window->raise();
window->activateWindow();
window->setFocus();
if (window->isMinimized())
window->showNormal();
} else
window->hide();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment