mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
Fix build error
This commit is contained in:
parent
5be490d326
commit
b9cd841608
2 changed files with 6 additions and 0 deletions
|
@ -141,7 +141,9 @@ void Dialog::initUI()
|
|||
|
||||
setWindowTitle(Config::getInstance().getTitle());
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
WinUtils::setDarkBorderToWindow((HWND)this->winId(), true);
|
||||
#endif
|
||||
|
||||
ui->bitRateEdit->setValidator(new QIntValidator(1, 99999, this));
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ enum : WORD
|
|||
DwmwaUseImmersiveDarkModeBefore20h1 = 19
|
||||
};
|
||||
|
||||
WinUtils::WinUtils(){};
|
||||
|
||||
WinUtils::~WinUtils(){};
|
||||
|
||||
// Set dark border to window
|
||||
// Reference: qt/qtbase.git/tree/src/plugins/platforms/windows/qwindowswindow.cpp
|
||||
bool WinUtils::setDarkBorderToWindow(const HWND &hwnd, const bool &d)
|
||||
|
|
Loading…
Add table
Reference in a new issue