1
0

revert: remove OpacityHelper

- remove OpacityHelper
- remove all related animation
- now bottom toolbar and navigation view are always visible
This commit is contained in:
2026-07-03 16:40:04 +08:00
parent c93ed94210
commit 9a18a41b8f
9 changed files with 0 additions and 93 deletions

View File

@@ -95,9 +95,6 @@ MainWindow::MainWindow(QWidget *parent)
m_am->actionRotateClockwise
}, this);
m_bottomButtonGroup->setOpacity(0, false);
m_gv->setOpacity(0, false);
connect(m_pm, &PlaylistManager::totalCountChanged, this, &MainWindow::updateGalleryButtonsVisibility);
connect(m_pm->model(), &PlaylistModel::modelReset, this, std::bind(&MainWindow::galleryCurrent, this, false, false));
@@ -273,17 +270,11 @@ void MainWindow::showEvent(QShowEvent *event)
void MainWindow::enterEvent(QEnterEvent *event)
{
m_bottomButtonGroup->setOpacity(1);
m_gv->setOpacity(1);
return FramelessWindow::enterEvent(event);
}
void MainWindow::leaveEvent(QEvent *event)
{
m_bottomButtonGroup->setOpacity(0);
m_gv->setOpacity(0);
return FramelessWindow::leaveEvent(event);
}