qt: Use hex debug prints compatible with older Qt versions
This commit is contained in:
@@ -154,9 +154,9 @@ evdev_translate(uint32_t keycode)
|
|||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
qWarning() << "Evdev Keyboard: Unknown key" << keycode;
|
qWarning() << "Evdev Keyboard: Unknown key" << keycode;
|
||||||
#if 0
|
#if 1
|
||||||
else
|
else
|
||||||
qInfo() << "Evdev Keyboard: Key" << keycode << "scancode" << Qt::hex << ret;
|
qInfo() << "Evdev Keyboard: Key" << keycode << "scancode" << QString::number(ret, 16);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@@ -224,10 +224,10 @@ xkbcommon_translate(uint32_t keycode)
|
|||||||
ret = evdev_translate(stoi(key_name_s.substr(1)) - 8);
|
ret = evdev_translate(stoi(key_name_s.substr(1)) - 8);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
qWarning() << "XKB Keyboard: Unknown key" << Qt::hex << keycode << QString::fromStdString(key_name_s);
|
qWarning() << "XKB Keyboard: Unknown key" << QString::number(keycode, 16) << QString::fromStdString(key_name_s);
|
||||||
#if 0
|
#if 1
|
||||||
else
|
else
|
||||||
qInfo() << "XKB Keyboard: Key" << Qt::hex << keycode << QString::fromStdString(key_name_s) << "scancode" << Qt::hex << ret;
|
qInfo() << "XKB Keyboard: Key" << QString::number(keycode, 16) << QString::fromStdString(key_name_s) << "scancode" << QString::number(ret, 16);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user