path: root/src/plugins/platforminputcontexts
diff options
authorGatis Paeglis <>2014-04-02 10:26:20 +0200
committerThe Qt Project <>2014-04-03 08:44:34 +0200
commit0dbd8c0be75c21acf96016ec1c43e26bc0cab036 (patch)
tree86fe8697e24815dfd7c801f47dabf4905fdcdfb7 /src/plugins/platforminputcontexts
parentd5ff16bc8ebf0f17fae3a28f08018db26567e81c (diff)
Be less verbose about invalid keysyms
Report invalid keysyms only when DEBUG_GENERATOR is defined. It is not unusal that Qt applications are used on old linux distributions where Compose files might be far behind the current development, therefore we should be less verbose when encountering invalid keysyms. On Red Hat 5 compose key plugin reports ~3200 lines of warning messages: "Qt Warning - invalid keysym: U1001D1BC" "Qt Warning - invalid keysym: U1001D16F" "Qt Warning - invalid keysym: U1001D1BA" "Qt Warning - invalid keysym: U1001D165" "Qt Warning - invalid keysym: U1001D16F" ... Task-number: QTBUG-34483 Change-Id: If0c51d300508ef164ad7fc59b0a76a838cd5a3b9 Reviewed-by: Frederik Gladhorn <> Reviewed-by: Jørgen Lind <>
Diffstat (limited to 'src/plugins/platforminputcontexts')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp b/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
index 8bbb490022..ea0b5261c4 100644
--- a/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
+++ b/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
@@ -430,8 +430,10 @@ void TableGenerator::parseKeySequence(char *line)
elem.keys[i] = XKB_KEY_dead_invertedbreve;
else if (!strcmp(sym, "dead_double_grave"))
elem.keys[i] = XKB_KEY_dead_doublegrave;
qWarning() << QString("Qt Warning - invalid keysym: %1").arg(sym);
} else {
elem.keys[i] = 0;