qt5base-lts/tests/auto
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
..
android Make sure libgnustl_shared.so is deployed along with Qt libs 2013-07-04 10:04:27 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Don't check for the existence of private include directories. 2013-07-22 15:41:45 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib Fixed QTextStream "stdin" auto tests 2013-07-30 09:56:40 +02:00
dbus Merge remote-tracking branch 'origin/stable' into dev 2013-07-23 11:18:11 +02:00
gui Fix application font population on OS X 2013-07-31 07:54:01 +02:00
guiapplauncher
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Merge remote-tracking branch 'origin/stable' into dev 2013-07-23 11:18:11 +02:00
opengl Add object names to QGLWidget-reparenting test. 2013-06-14 15:13:26 +02:00
other Merge branch 'release' into stable 2013-07-03 18:33:26 +02:00
printsupport QPrintPreviewDialog: Prevent changing of page in resize handling. 2013-05-23 09:31:27 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Remove Nokia-domains in commented-out test code. 2013-07-12 12:41:30 +02:00
testlib TestLib: align the colons so the "actual" and "expected" align too 2013-07-21 03:01:06 +02:00
tools moc: add unittest for --ignore-option-clashes 2013-07-30 09:36:25 +02:00
widgets Re-enable tests tst_qgraphicsproxywidget, tst_qgraphicswidget. 2013-07-24 22:16:58 +02:00
xml tst_qdom: Fix warning about character conversion, 2013-06-08 10:29:34 +02:00
auto.pro Make the CMake tests run sequentially, not in parallel. 2013-07-08 14:48:03 +02:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00