From 4d3a876a87bec473b73b7ded74393b50b52f2e2a Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Fri, 4 Sep 2009 14:22:17 +0200 Subject: Fix pixel snow on the combo box popup on Snow Leopard. On 10.5 and below the pixmap data bytes happened to be initialized by malloc, on 10.6 this is no longer the case. Revby: Gunnar Sletta Similar to 28f94e1ef94f. --- src/gui/styles/qmacstyle_mac.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 194c244..4cd8332 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -2147,6 +2147,7 @@ void QMacStyle::polish(QWidget* w) w->setWindowOpacity(QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5 ? 0.985 : 0.94); if (!w->testAttribute(Qt::WA_SetPalette)) { QPixmap px(64, 64); + px.fill(Qt::white); HIThemeMenuDrawInfo mtinfo; mtinfo.version = qt_mac_hitheme_version; mtinfo.menuType = kThemeMenuTypePopUp; -- cgit v0.12