qt5base-lts/tests/auto/corelib/kernel
Kai Koehne 9146432dc6 Allow loading of empty translation files
Do not return false for loading an empty .qm file - that is, a valid
file without any translations. We're already shipping empty .qm
files for English translations of Qt since a while, mainly as a
stop for the QTranslator::load(const QLocale &, ...) logic.

Note that QCoreApplication::installTranslator() will still return
false for an empty translation file - which is ok, because it
arguably does not make much sense to install it.

[ChangeLog][QtCore][QTranslator] It is now possible to load qm files
without any translations. This is particularly useful for the
language the untranslated strings are written in; logic to
load translations can now handle the source language like all
other languages.

Task-number: QTBUG-31031
Change-Id: Ibcb84aa755538cb2fa21b14f8635295a58440bbb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-07-12 08:54:33 +00:00
..
qcoreapplication Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
qdeadlinetimer Increase the resolution for QDeadlineTimer unit test 2016-10-26 03:16:26 +00:00
qelapsedtimer Extend blacklisting of tst_QElapsedTimer::elapsed to cover macOS 10.12 2017-06-18 12:58:58 +00:00
qeventdispatcher Extend blacklisting of qeventdispatcher to cover macOS 2017-05-23 14:52:09 +00:00
qeventloop tst_QEventLoop: Remove unconditional qWait() 2018-04-10 08:32:21 +00:00
qmath Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qmetaenum
qmetamethod Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qmetaobject Test for leaks in QMetaObject::invoke with functors 2018-01-14 22:36:27 +00:00
qmetaobjectbuilder Add support for scoped enums to QMetaObjectBuilder 2017-04-24 19:19:44 +00:00
qmetaproperty
qmetatype Metatype: make the Qt CBOR value-like types built-in meta types 2018-07-04 03:04:15 +00:00
qmimedata
qobject tst_qobject: Fix execution in debug&release shadow builds 2018-06-26 10:56:31 +00:00
qpointer
qsharedmemory Remove use of QRegExp from QSharedMemory 2017-12-30 23:34:00 +00:00
qsignalblocker
qsignalmapper
qsocketnotifier winrt: Fix tst_QSocketNotifier::asyncMultipleDatagram 2017-05-11 06:37:36 +00:00
qsystemsemaphore Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qtimer Merge remote-tracking branch 'origin/5.11' into dev 2018-07-02 11:23:45 +02:00
qtranslator Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
qvariant Merge remote-tracking branch 'origin/dev' into 5.11 2018-02-10 15:55:52 +01:00
qwineventnotifier Merge remote-tracking branch 'origin/5.11' into dev 2018-03-28 08:12:21 +02:00
kernel.pro Make tests compile for Android 2018-06-25 08:01:19 +00:00