This repository has been archived on 2025-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
yachat/qt-patches/006-win-all-hide menu gutter.patch
2025-12-25 01:38:25 +05:00

13 lines
789 B
Diff

diff -urN qt-all-opensource-src-4.3.5.orig/src/gui/styles/qwindowsvistastyle.cpp qt-all-opensource-src-4.3.5/src/gui/styles/qwindowsvistastyle.cpp
--- qt-all-opensource-src-4.3.5.orig/src/gui/styles/qwindowsvistastyle.cpp 2008-05-26 13:06:56.000000000 +0400
+++ qt-all-opensource-src-4.3.5/src/gui/styles/qwindowsvistastyle.cpp 2008-09-04 18:17:12.000000000 +0400
@@ -1042,7 +1042,9 @@
stateId = MBI_HOT;
XPThemeData theme2(widget, painter, QLatin1String("MENU"), MENU_BARITEM, stateId, option->rect);
+ if (!widget->property("hide-menu-popupgutter").toBool()) {
d->drawBackground(theme2);
+ } // hide-menu-popupgutter
if (!pix.isNull())
drawItemPixmap(painter, mbi->rect, alignment, pix);