From 74cd32c9ae940a7cfe0487cd1dd3f30df034d016 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 7 Apr 2013 23:40:57 +0200 Subject: [PATCH] Fix building with Qt 4.7 For reasons unknown, qPrintable() doesn't work with QByteArray in Qt versions prior to 4.8 (the confusing thing is why it works now, in fact). In any case, it probably makes sense to print a binary blob using normal QDebug output for QByteArrays anyway, rather than trying to convert it to a string. --- src/common/keyevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/keyevent.h b/src/common/keyevent.h index 0e7b3b87..323b27d4 100644 --- a/src/common/keyevent.h +++ b/src/common/keyevent.h @@ -65,7 +65,7 @@ protected: dbg << ", prefix = " << qPrintable(prefix()) << ", target = " << qPrintable(target()) << ", exchangetype = " << (exchangeType() == Init ? "init" : "finish") - << ", key = " << qPrintable(key()); + << ", key = " << key(); } -- 2.20.1