Add QPlatformWindow::setWindowModified(bool)
authorBradley T. Hughes <bradley.hughes@nokia.com>
Thu, 12 Apr 2012 10:52:24 +0000 (12:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 17 Apr 2012 08:15:44 +0000 (10:15 +0200)
commit2afeb072273bf6977b7e1897a1350cfeefa7d1b5
treeda7b3d002c0fc17bcfd894b6b631dc78ecb1ead8
parent1bbd9d8ee563c0741f5f0767b24413a863b63d95
Add QPlatformWindow::setWindowModified(bool)

Mac OS X provided a platform API for marking a window/document as
modified. This previously worked in Qt 4, so we need to have an
interface to keep this working in Qt 5. If the platform window does not
provide an implementation, fallback to setting the window title.

Note that this does not add any QWindow API, it's only in
QPlatformWindow.

Change-Id: I84c5a5df8536859157f2b1fa9e4cc647a09fd06d
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/kernel/qplatformwindow_qpa.cpp
src/gui/kernel/qplatformwindow_qpa.h
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/widgets/kernel/qwidget.cpp
src/widgets/kernel/qwidget_p.h
src/widgets/kernel/qwidget_qpa.cpp