summaryrefslogtreecommitdiffstats
path: root/src/kmap2qmap
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-17 09:49:02 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-17 09:49:02 +0100
commitf0094cfe36ab30e3f067d8826b3ee6101455d2b8 (patch)
tree436b3e0281fd6dd7834f8afa5e03533bc9a24a3a /src/kmap2qmap
parent642bff09076a95b0eede67216a13b0080a2ce851 (diff)
parent7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5 (diff)
Merge remote-tracking branch 'origin/5.4' into 5.5
Diffstat (limited to 'src/kmap2qmap')
-rw-r--r--src/kmap2qmap/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/kmap2qmap/main.cpp b/src/kmap2qmap/main.cpp
index e9bb389d6..3641bdc88 100644
--- a/src/kmap2qmap/main.cpp
+++ b/src/kmap2qmap/main.cpp
@@ -395,9 +395,11 @@ static const int symbol_synonyms_size = sizeof(symbol_synonyms)/sizeof(symbol_sy
// makes the generated array in --header mode a bit more human readable
QT_BEGIN_NAMESPACE
-static bool operator<(const QEvdevKeyboardMap::Mapping &m1, const QEvdevKeyboardMap::Mapping &m2)
-{
- return m1.keycode != m2.keycode ? m1.keycode < m2.keycode : m1.modifiers < m2.modifiers;
+namespace QEvdevKeyboardMap {
+ static bool operator<(const Mapping &m1, const Mapping &m2)
+ {
+ return m1.keycode != m2.keycode ? m1.keycode < m2.keycode : m1.modifiers < m2.modifiers;
+ }
}
QT_END_NAMESPACE