diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-29 14:35:51 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-29 14:38:42 (GMT) |
commit | 3923d737f911103c5bba6544963833496b2058b1 (patch) | |
tree | e1e44cec464216d32993ebeddca86cffc0b20953 /src/gui | |
parent | 61d8f281d5f6e339ad497c1f06e4e4e2f306fe43 (diff) | |
download | Qt-3923d737f911103c5bba6544963833496b2058b1.zip Qt-3923d737f911103c5bba6544963833496b2058b1.tar.gz Qt-3923d737f911103c5bba6544963833496b2058b1.tar.bz2 |
Always turn on shadows for Cocoa.
Frameless windows wouldn't get shadows in Cocoa, which they do in
Carbon. You can argue over who is more correct, but the fact is they
can't be inconsistent. Since Cocoa is the newcomer, I'm bending that.
Though it would seem useful to have an ability to provide some developer
control over the shadow. At the moment, the only thing we have to ensure
is that we always turn on the shadow.
Task-number: 254725
Reviewed-by: Denis
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 8f04b89..b9183de 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -2173,11 +2173,10 @@ void QWidgetPrivate::finishCreateWindow_sys_Cocoa(void * /*NSWindow * */ voidWin if ((popup || type == Qt::Tool || type == Qt::ToolTip) && !q->isModal()) { [windowRef setHidesOnDeactivate:YES]; - [windowRef setHasShadow:YES]; } else { [windowRef setHidesOnDeactivate:NO]; } - + [windowRef setHasShadow:YES]; Q_UNUSED(parentWidget); Q_UNUSED(dialog); |