Add Qt5 option. Use Qt5 by default.

This commit is contained in:
Sacha 2014-08-19 21:34:00 +10:00
parent e9c5c563a5
commit 90f23020f5
7 changed files with 55 additions and 32 deletions

View file

@ -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())