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:33:20 (GMT) |
commit | dfa5a8acc44d2acda4d32ee79f2556fb030c3ab1 (patch) | |
tree | 192734a4eeba93b883f22dc14643da4ebdc35243 | |
parent | 9706ecab65ebd95b2facd22f5378c6614225b390 (diff) | |
download | Qt-dfa5a8acc44d2acda4d32ee79f2556fb030c3ab1.zip Qt-dfa5a8acc44d2acda4d32ee79f2556fb030c3ab1.tar.gz Qt-dfa5a8acc44d2acda4d32ee79f2556fb030c3ab1.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 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; |