diff options
author | Andy Shaw <qt-info@nokia.com> | 2010-06-23 05:44:10 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2010-06-23 05:44:10 (GMT) |
commit | 1aee8f71da584525eea569690110ca2ed471c5ae (patch) | |
tree | 4598da75f1a9f24ccd7a3fa03d70b8c55bf64ea4 /src/gui/accessible/qaccessible_mac_cocoa.mm | |
parent | fc48427e5f503b79e97e9607f1a281877817bc21 (diff) | |
download | Qt-1aee8f71da584525eea569690110ca2ed471c5ae.zip Qt-1aee8f71da584525eea569690110ca2ed471c5ae.tar.gz Qt-1aee8f71da584525eea569690110ca2ed471c5ae.tar.bz2 |
Ensure that compiling with the no debug/warning output defines works
The defines that can be used are QT_NO_DEBUG_OUTPUT and
QT_NO_WARNING_OUTPUT in order to turn off qDebug and qWarning output.
Reviewed-by: cduclos
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/gui/accessible/qaccessible_mac_cocoa.mm')
-rw-r--r-- | src/gui/accessible/qaccessible_mac_cocoa.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible_mac_cocoa.mm b/src/gui/accessible/qaccessible_mac_cocoa.mm index 1688404..ada927e 100644 --- a/src/gui/accessible/qaccessible_mac_cocoa.mm +++ b/src/gui/accessible/qaccessible_mac_cocoa.mm @@ -58,11 +58,15 @@ QT_BEGIN_NAMESPACE //#define MAC_ACCESSIBILTY_DEVELOPER_MODE +#ifndef QT_NO_DEBUG_STREAM #ifdef MAC_ACCESSIBILTY_DEVELOPER_MODE #define MAC_ACCESSIBILTY_DEBUG QT_PREPEND_NAMESPACE(qDebug) #else #define MAC_ACCESSIBILTY_DEBUG if (0) QT_PREPEND_NAMESPACE(qDebug) #endif +#else +#define MAC_ACCESSIBILTY_DEBUG if (0) QT_PREPEND_NAMESPACE(QNoDebug) +#endif typedef QMap<QAccessible::Role, NSString *> QMacAccessibiltyRoleMap; Q_GLOBAL_STATIC(QMacAccessibiltyRoleMap, qMacAccessibiltyRoleMap); |