From dfa5a8acc44d2acda4d32ee79f2556fb030c3ab1 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 ef1818d..e7ef51a 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -1951,6 +1951,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