Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add dtkgui version control for openning window effect #85

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/grand-search/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <QScreen>
#include <QKeyEvent>

#include <dtkgui_config.h>

DWIDGET_USE_NAMESPACE
using namespace GrandSearch;

Expand Down Expand Up @@ -189,8 +191,12 @@ void MainWindow::initUI()
}
qDebug() << "current platform name:" << QApplication::platformName() << " flags:" << this->windowFlags();

DPlatformWindowHandle *windowHandle = new DPlatformWindowHandle(this);
windowHandle->setWindowStartUpEffect(DPlatformHandle::EffectType::EffectNormal);
#ifdef DTKGUI_VERSION_STR
#if (DTK_VERSION_CHECK(DTKGUI_VERSION_MAJOR, DTKGUI_VERSION_MINOR, DTKGUI_VERSION_PATCH, DTKGUI_VERSION_BUILD) > DTK_VERSION_CHECK(5, 6, 9, 4))
DPlatformWindowHandle *windowHandle = new DPlatformWindowHandle(this, this);
windowHandle->setWindowStartUpEffect(DPlatformHandle::EffectType::EffectNormal);
#endif
#endif

// 控制界面大小和位置
setFixedSize(MainWindowWidth, MainWindowHeight);
Expand Down
Loading