summaryrefslogtreecommitdiff
path: root/externals/qhexedit/qhexedit_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/qhexedit/qhexedit_p.cpp')
-rw-r--r--externals/qhexedit/qhexedit_p.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/externals/qhexedit/qhexedit_p.cpp b/externals/qhexedit/qhexedit_p.cpp
index c16f4ce4d..2a6885de8 100644
--- a/externals/qhexedit/qhexedit_p.cpp
+++ b/externals/qhexedit/qhexedit_p.cpp
@@ -1,5 +1,3 @@
1#include <QtGui>
2
3#include "qhexedit_p.h" 1#include "qhexedit_p.h"
4#include "commands.h" 2#include "commands.h"
5 3
@@ -437,7 +435,7 @@ void QHexEditPrivate::keyPressEvent(QKeyEvent *event)
437if (!_readOnly) 435if (!_readOnly)
438{ 436{
439 /* Hex input */ 437 /* Hex input */
440 int key = int(event->text()[0].toAscii()); 438 int key = int(event->text()[0].toLatin1());
441 if ((key>='0' && key<='9') || (key>='a' && key <= 'f')) 439 if ((key>='0' && key<='9') || (key>='a' && key <= 'f'))
442 { 440 {
443 if (getSelectionBegin() != getSelectionEnd()) 441 if (getSelectionBegin() != getSelectionEnd())