mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Qt6 already has a closeEvent on QQuickView
This commit is contained in:
parent
f7e5b590b5
commit
6fbb755277
2 changed files with 1 additions and 14 deletions
|
@ -156,18 +156,6 @@ MainWindow::setWindowTitle(int notificationCount)
|
||||||
QQuickView::setTitle(name);
|
QQuickView::setTitle(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
MainWindow::event(QEvent *event)
|
|
||||||
{
|
|
||||||
auto type = event->type();
|
|
||||||
|
|
||||||
if (type == QEvent::Close) {
|
|
||||||
closeEvent(static_cast<QCloseEvent *>(event));
|
|
||||||
}
|
|
||||||
|
|
||||||
return QQuickView::event(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MainWindow::restoreWindowSize()
|
MainWindow::restoreWindowSize()
|
||||||
{
|
{
|
||||||
|
|
|
@ -81,8 +81,7 @@ public:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
bool event(QEvent *event) override;
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Handle interaction with the tray icon.
|
//! Handle interaction with the tray icon.
|
||||||
|
|
Loading…
Reference in a new issue