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);
|
||||
}
|
||||
|
||||
bool
|
||||
MainWindow::event(QEvent *event)
|
||||
{
|
||||
auto type = event->type();
|
||||
|
||||
if (type == QEvent::Close) {
|
||||
closeEvent(static_cast<QCloseEvent *>(event));
|
||||
}
|
||||
|
||||
return QQuickView::event(event);
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::restoreWindowSize()
|
||||
{
|
||||
|
|
|
@ -81,8 +81,7 @@ public:
|
|||
#endif
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event);
|
||||
bool event(QEvent *event) override;
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
private slots:
|
||||
//! Handle interaction with the tray icon.
|
||||
|
|
Loading…
Reference in a new issue