diff options
Diffstat (limited to 'src/corelib/io/qdebug.h')
-rw-r--r-- | src/corelib/io/qdebug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 2463095743..b3787f9e78 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -446,6 +446,17 @@ inline QDebug operator<<(QDebug debug, const QFlags<T> &flags) return qt_QMetaEnum_flagDebugOperator_helper(debug, flags); } +inline QDebug operator<<(QDebug debug, QKeyCombination combination) +{ + QDebugStateSaver saver(debug); + debug.nospace() << "QKeyCombination(" + << combination.keyboardModifiers() + << ", " + << combination.key() + << ")"; + return debug; +} + #ifdef Q_OS_MAC // We provide QDebug stream operators for commonly used Core Foundation |