blob: 8f25031d7d67fe641a44a5989fa5045beb87b42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qkbdsl5000_qws.cpp~fix-sl5000driver
+++ qt-embedded-opensource-4.0.0-b1/src/gui/embedded/qkbdsl5000_qws.cpp
@@ -219,7 +219,7 @@
else if (code == 0x44) { unicode='V'-'@'; scan=Qt::Key_V; } // Paste
else if (code == 0x52) { unicode='Z'-'@'; scan=Qt::Key_Z; } // Undo
if (scan) {
- processKeyEvent(unicode, scan, Qt::ControlButton, !release, false);
+ processKeyEvent(unicode, scan, Qt::ControlModifier, !release, false);
return;
}
}
@@ -307,9 +307,9 @@
}
modifiers = 0;
- if (bAlt) modifiers |= Qt::AltButton;
- if (bCtrl) modifiers |= Qt::ControlButton;
- if (bShift) modifiers |= Qt::ShiftButton;
+ if (bAlt) modifiers |= Qt::AltModifier;
+ if (bCtrl) modifiers |= Qt::ControlModifier;
+ if (bShift) modifiers |= Qt::ShiftModifier;
// looks wrong -- WWA
bool repeat = false;
|