aboutsummaryrefslogtreecommitdiffhomepage
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 c16f4ce4..2a6885de 100644
--- a/externals/qhexedit/qhexedit_p.cpp
+++ b/externals/qhexedit/qhexedit_p.cpp
@@ -1,5 +1,3 @@
-#include <QtGui>
-
#include "qhexedit_p.h"
#include "commands.h"
@@ -437,7 +435,7 @@ void QHexEditPrivate::keyPressEvent(QKeyEvent *event)
if (!_readOnly)
{
/* Hex input */
- int key = int(event->text()[0].toAscii());
+ int key = int(event->text()[0].toLatin1());
if ((key>='0' && key<='9') || (key>='a' && key <= 'f'))
{
if (getSelectionBegin() != getSelectionEnd())