forked from github_mirror/framelesshelper
Minor tweaks.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
ddef1cab43
commit
5fe936f631
|
@ -112,7 +112,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
mainWindow->resize(800, 600);
|
||||
|
||||
FramelessWindowsManager::moveWindowToDesktopCenter(mainWindow);
|
||||
//FramelessWindowsManager::moveWindowToDesktopCenter(mainWindow);
|
||||
|
||||
mainWindow->show();
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
widget.resize(800, 600);
|
||||
|
||||
FramelessWindowsManager::moveWindowToDesktopCenter(&widget);
|
||||
//FramelessWindowsManager::moveWindowToDesktopCenter(&widget);
|
||||
|
||||
widget.show();
|
||||
|
||||
|
|
|
@ -1138,7 +1138,7 @@ void updateQtFrame_internal(const HWND handle, const bool resetToDefault = false
|
|||
const int tbh = resetToDefault
|
||||
? 0
|
||||
: WinNativeEventFilter::getSystemMetric(
|
||||
handle, WinNativeEventFilter::SystemMetric::TitleBarHeight);
|
||||
handle, WinNativeEventFilter::SystemMetric::TitleBarHeight, true);
|
||||
#ifdef QT_WIDGETS_LIB
|
||||
const QWidget *widget = QWidget::find(reinterpret_cast<WId>(handle));
|
||||
if (widget && widget->isTopLevel()) {
|
||||
|
|
Loading…
Reference in New Issue