diff options
author | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-11-24 10:39:33 (GMT) |
---|---|---|
committer | Arvid Ephraim Picciani <arvid.picciani@nokia.com> | 2010-11-24 11:30:43 (GMT) |
commit | 7d11b50933ad6cfaebda1190d8d8b9ba470c8013 (patch) | |
tree | de1272497cc10848c007688f783cd95b1119eb5b /src/gui/kernel/qwidget_mac.mm | |
parent | f99e4bb57544c96550204d826c217812cfb010d3 (diff) | |
download | Qt-7d11b50933ad6cfaebda1190d8d8b9ba470c8013.zip Qt-7d11b50933ad6cfaebda1190d8d8b9ba470c8013.tar.gz Qt-7d11b50933ad6cfaebda1190d8d8b9ba470c8013.tar.bz2 |
Add WA_MacNoShadow widget attribute
Task-number: QTBUG-6831
Reviewed-by: Fabien Freling <fabien.freling@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwidget_mac.mm')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 882f03b..bcddae5 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -2294,7 +2294,10 @@ void QWidgetPrivate::finishCreateWindow_sys_Cocoa(void * /*NSWindow * */ voidWin } else { [windowRef setHidesOnDeactivate:NO]; } - [windowRef setHasShadow:YES]; + if (q->testAttribute(Qt::WA_MacNoShadow)) + [windowRef setHasShadow:NO]; + else + [windowRef setHasShadow:YES]; Q_UNUSED(parentWidget); Q_UNUSED(dialog); |