1
0

refactor: remove useless function in main window

This commit is contained in:
2026-07-13 15:50:30 +08:00
parent 7e8fd4ea21
commit 16800df138
2 changed files with 1 additions and 19 deletions

View File

@@ -302,16 +302,6 @@ void MainWindow::showEvent(QShowEvent *event)
return FramelessWindow::showEvent(event);
}
void MainWindow::enterEvent(QEnterEvent *event)
{
return FramelessWindow::enterEvent(event);
}
void MainWindow::leaveEvent(QEvent *event)
{
return FramelessWindow::leaveEvent(event);
}
void MainWindow::mouseDoubleClickEvent(QMouseEvent *event)
{
// The forward/back mouse button can also used to trigger a mouse double-click event
@@ -322,7 +312,7 @@ void MainWindow::mouseDoubleClickEvent(QMouseEvent *event)
switch (Settings::instance()->doubleClickBehavior()) {
case Settings::DoubleClickBehavior::Close:
quitAppAction();
closeWindow();
event->accept();
break;
case Settings::DoubleClickBehavior::Maximize:
@@ -448,11 +438,6 @@ void MainWindow::toggleAvoidResetTransform()
m_gv->setAvoidResetTransform(!m_gv->isAvoidResetTransform());
}
void MainWindow::quitAppAction(bool force)
{
closeWindow();
}
void MainWindow::toggleFullscreen()
{
if (isFullScreen()) {