Minor tweaks.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-10-20 23:26:03 +08:00
parent a8f7fdef1d
commit f3e863e14b
1 changed files with 4 additions and 1 deletions

View File

@ -352,11 +352,14 @@ bool Widget::nativeEvent(const QByteArray &eventType, void *message, long *resul
case WM_DWMCOLORIZATIONCOLORCHANGED: {
m_cThemeColor = QColor::fromRgba(msg->wParam);
if (shouldDrawThemedBorder()) {
update();
updateWindow(this);
}
break;
}
case WM_DPICHANGED:
updateWindow(this);
break;
case WM_NCPAINT:
update();
break;
default: