qt5base-lts/tests/auto/gui
Simon Hausmann 3745b0ca12 Fix application font population on OS X
This patch fixes two issues that prevented the application font related tests
of tst_QFontDatabase from passing:

* The code for creating the font descriptor after the registration of an app font
  with file name using CTFontDescriptorCreateWithAttributes must create a dictionary
  with kCTFontURLAttribute as key and the CFURLRef pointing to the on-disk file as
  value. Unfortunately the code mixed up keys and values in the dictionary.

* Registration of app fonts within QFontDatabase itself on Windows and Fontconfig
  platforms works by QFontDatabase calling addApplicationFont on the platform db
  after calling populateFontDatabase(). It assumes that addApplicationFont on the
  platform db is capable of registering the font right away. This part was also
  missing from the Mac implementation and this patch implements it by moving the
  common registration code from a CTFontDescriptorRef out into a separate method,
  called from populateFontDatabase() as well as addApplicationFont().

Task-number: QTBUG-23062

Change-Id: Ide5e6bf277d99f3cab50ee0d4631cc3fba6d0d45
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
2013-07-31 07:54:01 +02:00
..
image Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-07-24 15:09:38 +02:00
itemmodels QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
kernel Merge remote-tracking branch 'origin/stable' into dev 2013-07-23 11:18:11 +02:00
math3d QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
painting Fix fillRect on RGBA8888 images 2013-07-29 16:10:53 +02:00
qopengl test: Mark tst_qopengl as insignificant on Win7 + Angle 2013-06-07 18:07:26 +02:00
text Fix application font population on OS X 2013-07-31 07:54:01 +02:00
util Bugfix QDesktopServices on Windows 2013-07-11 10:56:49 +02:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00