summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qdebug.h')
-rw-r--r--src/corelib/io/qdebug.h11
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