qt6-bb10/tests/auto/corelib/io
Kai Koehne ea34893b8f Support setting a default severity level for QLoggingCategory
Allow to alter the default configuration for categories by passing a
message type: All message types with lower severity are disabled in this
category.

This is useful for libraries, which shouldn't mess with the category
registry itself: Setting rules, a category filter ... might cause
conflicts and ordering problems, so this API should be reserved to the
specific application.

For the Qt categories, we have code in the default category filter that
disables the 'debug' category. However, this is hardcoded, and there's no
way so far for other libraries to get the same behavior. With this patch
one can get the same behavior:

Q_LOGGING_CATEGORY(DRIVER_USB_EVENTS, "driver.usb.events", QtWarningMsg);

[ChangeLog][QtCore][Logging] Added QtMsgType argument to QLoggingCategory
constructor and Q_LOGGING_CATEGORY macro that controls the default
category configuration.

Change-Id: Ib2902f755f9f7285d79888ec30e8f3cef95ae628
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
2014-07-23 15:38:10 +02:00
..
largefile Remove #ifdef from outside test functions 2014-01-10 17:14:29 +01:00
qabstractfileengine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qbuffer Make QBuffer::bytesAvailable() work 2013-04-16 19:45:11 +02:00
qdatastream Properly serialize QFont. 2014-03-31 17:45:47 +02:00
qdataurl tst_qdataurl: Remove QT_DISABLE_DEPRECATED_BEFORE=0 2013-04-12 07:19:45 +02:00
qdebug QDebugStateSaver: Fix trailing space issues 2014-07-23 13:33:25 +02:00
qdir tst_qdir: Move QFINDTESTDATA() from init() to constructor. 2014-07-09 10:59:42 +02:00
qdiriterator Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfile Add QFileDevice::MemoryMapFlags::MapPrivateOption flag. 2014-07-23 07:20:40 +02:00
qfileinfo QNX: Fix tst_qfileinfo 2014-05-14 09:12:16 +02:00
qfileselector QFileSelector: correct the macros for Apple platforms. 2014-02-04 19:36:58 +01:00
qfilesystementry Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfilesystemwatcher Merge remote-tracking branch 'origin/stable' into dev 2014-06-05 22:26:44 +02:00
qiodevice Skip unstable autotests in QtBase. 2014-07-02 09:28:34 +02:00
qipaddress Make QIPAddress::parseIp6 return the first bad character 2013-07-20 05:08:08 +02:00
qlockfile Skip tst_QLockFile::noPermissions 2014-05-19 19:33:15 +02:00
qloggingcategory Support setting a default severity level for QLoggingCategory 2014-07-23 15:38:10 +02:00
qloggingregistry Logging: Be also more strict with value of logging rule 2014-04-03 11:07:07 +02:00
qnodebug Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
qprocess Merge remote-tracking branch 'origin/5.3' into dev 2014-07-01 16:25:19 +02:00
qprocess-noapplication Expose QTest::currentAppName() and remove hard-coded argv[0] in tests 2013-09-26 18:45:16 +02:00
qprocessenvironment Fix remaining use of QTEST_NOOP_MAIN 2013-09-02 14:59:02 +02:00
qresourceengine Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qsavefile QSaveFile: error out in open when the file is a directory 2014-06-04 12:25:02 +02:00
qsettings Properly escape bytearray data outside the ascii range when using a codec 2014-06-04 23:06:16 +02:00
qstandardpaths Add locations AppDataLocation, AppLocalDataLocation to QStandardPaths. 2014-04-29 12:28:16 +02:00
qtemporarydir WinRT: Fix various test compilations 2013-10-02 12:36:05 +02:00
qtemporaryfile Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qtextstream Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qurl Add QUrl::fromUserInput overload with a cwd argument. 2014-05-06 01:20:17 +02:00
qurlinternal Fix MSVC 64bit warnings about int64 truncation in tests. 2014-01-24 22:06:15 +01:00
qurlquery tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
qwinoverlappedionotifier QWinOverlappedIoNotifier: Add an extended waitForAnyNotified() method 2014-05-21 02:15:10 +02:00
io.pro Allow configuration of logging rules from file system 2014-02-11 20:59:15 +01:00