Fix building with Qt 4.7
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 7 Apr 2013 21:40:57 +0000 (23:40 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 7 Apr 2013 21:40:57 +0000 (23:40 +0200)
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

index 0e7b3b8..323b27d 100644 (file)
@@ -65,7 +65,7 @@ protected:
         dbg << ", prefix = " << qPrintable(prefix())
             << ", target = " << qPrintable(target())
             << ", exchangetype = " << (exchangeType() == Init ? "init" : "finish")
         dbg << ", prefix = " << qPrintable(prefix())
             << ", target = " << qPrintable(target())
             << ", exchangetype = " << (exchangeType() == Init ? "init" : "finish")
-            << ", key = " << qPrintable(key());
+            << ", key = " << key();
     }
 
 
     }