diff options
| author | 2014-08-19 21:34:00 +1000 | |
|---|---|---|
| committer | 2014-08-19 21:34:00 +1000 | |
| commit | 90f23020f53c94dab800f7348877aae483974512 (patch) | |
| tree | dffeef80b636b9f8baee1f70820dc9536f7d8567 /externals/qhexedit/qhexedit_p.cpp | |
| parent | Merge pull request #55 from lioncash/string (diff) | |
| download | yuzu-90f23020f53c94dab800f7348877aae483974512.tar.gz yuzu-90f23020f53c94dab800f7348877aae483974512.tar.xz yuzu-90f23020f53c94dab800f7348877aae483974512.zip | |
Add Qt5 option. Use Qt5 by default.
Diffstat (limited to 'externals/qhexedit/qhexedit_p.cpp')
| -rw-r--r-- | externals/qhexedit/qhexedit_p.cpp | 4 |
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) | |||
| 437 | if (!_readOnly) | 435 | if (!_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()) |