Cocoa: Don't beep on maximize.
Use zoom instead of performZoom: Does not beep if there is no Zoom button, and is what Qt 4 did. Task-number: QTBUG-37716 Change-Id: Iaa85d55a449744c38b260cf79745a433e0e3272f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>bb10
parent
a7e8b400d1
commit
840a665017
|
|
@ -1473,7 +1473,7 @@ void QCocoaWindow::syncWindowState(Qt::WindowState newState)
|
|||
|
||||
if ((m_synchedWindowState & Qt::WindowMaximized) != (newState & Qt::WindowMaximized) || (m_effectivelyMaximized && newState == Qt::WindowNoState)) {
|
||||
if ((m_synchedWindowState & Qt::WindowFullScreen) == (newState & Qt::WindowFullScreen)) {
|
||||
[m_nsWindow performZoom : m_nsWindow]; // toggles
|
||||
[m_nsWindow zoom : m_nsWindow]; // toggles
|
||||
m_effectivelyMaximized = !m_effectivelyMaximized;
|
||||
} else if (!(newState & Qt::WindowMaximized)) {
|
||||
// it would be nice to change the target geometry that toggleFullScreen will animate toward
|
||||
|
|
|
|||
Loading…
Reference in New Issue