From 90f23020f53c94dab800f7348877aae483974512 Mon Sep 17 00:00:00 2001 From: Sacha Date: Tue, 19 Aug 2014 21:34:00 +1000 Subject: Add Qt5 option. Use Qt5 by default. --- externals/qhexedit/qhexedit_p.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'externals/qhexedit/qhexedit_p.cpp') 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 @@ -#include - #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()) -- cgit v1.2.3