Skip to content

Commit

Permalink
fix: Change effect for openning window
Browse files Browse the repository at this point in the history
Change effect for openning window.

Log:
Task: https://pms.uniontech.com/bug-view-244347.html
  • Loading branch information
N0rthHXD committed Apr 3, 2024
1 parent e879816 commit 3143ea1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/grand-search/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <DApplication>
#include <DLabel>
#include <DRegionMonitor>
#include <DPlatformWindowHandle>

#include <QDebug>
#include <QTimer>
Expand Down Expand Up @@ -188,6 +189,9 @@ void MainWindow::initUI()
}
qDebug() << "current platform name:" << QApplication::platformName() << " flags:" << this->windowFlags();

DPlatformWindowHandle *windowHandle = new DPlatformWindowHandle(this);
windowHandle->setWindowStartUpEffect(DPlatformHandle::EffectType::EffectNormal);

// 控制界面大小和位置
setFixedSize(MainWindowWidth, MainWindowHeight);
QScreen *screen = qApp->primaryScreen();
Expand Down

0 comments on commit 3143ea1

Please sign in to comment.