Respect the DontUseNativeDialog flag.
authorChristoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Tue, 10 Apr 2012 15:17:41 +0000 (17:17 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 03:51:14 +0000 (05:51 +0200)
commit1c9a4093a5402b4e7a8ebe1aea819d98af833e40
tree71823d22c018ebfc675ff9b1158d37f99ba78768
parent551fd20c19a7c19dd4d0449d64fc7e0a05553f57
Respect the DontUseNativeDialog flag.

QFontDialog and QColorDialog were ignoring the DontUseNativeDialog. This
lead to a native (Cocoa) dialog created all the time.

Fix the testcase for QFontDialog. It needs the DontUseNativeDialog flag
set.

Task-number: QTBUG-24321

Change-Id: I159c1ad057bac38226f1e01a56b15f142650bfd8
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/widgets/dialogs/qcolordialog.cpp
src/widgets/dialogs/qfontdialog.cpp
src/widgets/dialogs/qfontdialog_p.h
tests/auto/widgets/dialogs/qfontdialog/tst_qfontdialog.cpp