diff options
author | Morten Sorvig <msorvig@trolltech.com> | 2009-09-04 12:22:17 (GMT) |
---|---|---|
committer | Morten Sorvig <msorvig@trolltech.com> | 2009-09-04 12:22:17 (GMT) |
commit | 4d3a876a87bec473b73b7ded74393b50b52f2e2a (patch) | |
tree | 49a373fa06ab42cac25da4fff267946da49dc88c | |
parent | a42610cc9c9cb9f8de52b519fad190746063335f (diff) | |
download | Qt-4d3a876a87bec473b73b7ded74393b50b52f2e2a.zip Qt-4d3a876a87bec473b73b7ded74393b50b52f2e2a.tar.gz Qt-4d3a876a87bec473b73b7ded74393b50b52f2e2a.tar.bz2 |
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 <gunnar@trolltech.com>
Similar to 28f94e1ef94f.
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
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; |