qt5base-lts/tests/auto/corelib
Kai Koehne e541a3f099 QTranslator: Expose language of translation file
This allows for instance to show the current UI language in the UI,
or to load additional translations that match the .qm file by other
means.

This is especially useful in the case of QTranslator::load(QLocale(),
...), in which case different language and country combinations might
be tried.

Another option is to inspect the file name via QTranslator::filePath();
however, this is more error-prone, and might also miss information
(if the .qm file name doesn't have a country suffix, or no suffix at
all).

Change-Id: I6f565d53d8f50e21241ccae6c4de264747ac8f81
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2020-02-10 15:14:55 +00:00
..
animation Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Merge remote-tracking branch 'origin/5.14' into 5.15 2020-01-09 20:30:39 +01:00
io On Windows 7, fall back to SHFileOperation to avoid confirmation dialogs 2020-02-07 12:21:13 +01:00
itemmodels QIdentityProxyModel: implement moveRows / moveColumns 2020-01-02 17:48:07 +01:00
kernel QTranslator: Expose language of translation file 2020-02-10 15:14:55 +00:00
mimetypes Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
plugin Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
serialization tst_QDataStream::readQCursor(): Replace deprecated QCursor API 2020-02-01 07:31:02 +08:00
statemachine std::chrono overload added to QStateMachine::postDelayedEvent() 2020-02-10 15:04:39 +01:00
text Configure the MS-Win long time format rather than assuming we know it 2020-02-06 12:56:58 +01:00
thread Add a constructor for QRunnable from anonymous functions 2020-01-31 19:20:43 +01:00
time Deprecate locale-related DateFormat enum members 2020-01-31 19:20:43 +01:00
tools QScopeGuard: Fix build failures with qScopeGuard() 2020-02-01 11:07:08 +02:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00