summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorMorten Sorvig <msorvig@trolltech.com>2009-09-04 12:22:17 (GMT)
committerMorten Sorvig <msorvig@trolltech.com>2009-09-04 12:22:17 (GMT)
commit4d3a876a87bec473b73b7ded74393b50b52f2e2a (patch)
tree49a373fa06ab42cac25da4fff267946da49dc88c /src/gui/styles
parenta42610cc9c9cb9f8de52b519fad190746063335f (diff)
downloadQt-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.
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm1
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;