summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-03-30 11:21:22 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-03-30 12:58:17 (GMT)
commit13d2c268b732ce07c249f341a6e1b9e1ff63e71d (patch)
tree5d20faa35435c336abfeb47e50d8af8b45d8072c /src/gui/styles
parentf0c21f86cdc9341b7dda2b4b2bca085954a79ef8 (diff)
downloadQt-13d2c268b732ce07c249f341a6e1b9e1ff63e71d.zip
Qt-13d2c268b732ce07c249f341a6e1b9e1ff63e71d.tar.gz
Qt-13d2c268b732ce07c249f341a6e1b9e1ff63e71d.tar.bz2
Adjust the opacity value for popups
Seems that things are a little less transparent in 10.5 (and have a blur). Getting the blur in is going to be difficult, but adjusting the opacity will get us closer than we are now. Task-number: 249364 Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index d598807..398e11d 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -2189,7 +2189,7 @@ void QMacStyle::polish(QWidget* w)
}
if (qobject_cast<QMenu*>(w) || qobject_cast<QComboBoxPrivateContainer *>(w)) {
- w->setWindowOpacity(0.94);
+ w->setWindowOpacity(QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5 ? 0.985 : 0.94);
if (!w->testAttribute(Qt::WA_SetPalette)) {
QPixmap px(64, 64);
HIThemeMenuDrawInfo mtinfo;