diff options
author | hjk <hjk121@nokiamail.com> | 2013-09-27 13:37:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-06 19:47:31 +0200 |
commit | 32f27b4367c4e042a3f0cda671579494e31c1d69 (patch) | |
tree | 45b2433b6d321dd37a752b4be2cf7625ddcf5e4b /src/corelib/doc | |
parent | 09a11069e7b0aafcfccad78d7f69eeb1fadd5494 (diff) |
Replace QLoggingCategory::isEnabled by non-template functions
This yields the same results as previously and is more in line
with existing interfaces.
Change-Id: I0bf0372bf18f3bfde579385cddbe594bf71e3c52
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/snippets/qloggingcategory/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/doc/snippets/qloggingcategory/main.cpp b/src/corelib/doc/snippets/qloggingcategory/main.cpp index d6d9ae0ff3..27d64e8253 100644 --- a/src/corelib/doc/snippets/qloggingcategory/main.cpp +++ b/src/corelib/doc/snippets/qloggingcategory/main.cpp @@ -73,7 +73,7 @@ void main(int argc, char *argv[]) //![2] // don't run the expensive code if the string won't print - if (QT_DRIVER_USB().isEnabled<QtDebugMsg>()) { + if (QT_DRIVER_USB().isDebugEnabled()) { QStringList items; foreach (const UsbEntry &entry, usbEntries()) items << QString("%1 (%2)").arg(entry.id, entry.classtype); |