diff options
Diffstat (limited to 'Swift/QtUI/QtWebView.cpp')
| -rw-r--r-- | Swift/QtUI/QtWebView.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Swift/QtUI/QtWebView.cpp b/Swift/QtUI/QtWebView.cpp index 967be1a..24636ed 100644 --- a/Swift/QtUI/QtWebView.cpp +++ b/Swift/QtUI/QtWebView.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2017 Isode Limited. | 2 | * Copyright (c) 2010-2018 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -7,8 +7,6 @@ | |||
| 7 | 7 | ||
| 8 | #include <Swift/QtUI/QtWebView.h> | 8 | #include <Swift/QtUI/QtWebView.h> |
| 9 | 9 | ||
| 10 | #include <boost/numeric/conversion/cast.hpp> | ||
| 11 | |||
| 12 | #include <QFocusEvent> | 10 | #include <QFocusEvent> |
| 13 | #include <QKeyEvent> | 11 | #include <QKeyEvent> |
| 14 | #include <QKeySequence> | 12 | #include <QKeySequence> |
| @@ -48,7 +46,7 @@ void QtWebView::keyPressEvent(QKeyEvent* event) { | |||
| 48 | modifiers, | 46 | modifiers, |
| 49 | event->text(), | 47 | event->text(), |
| 50 | event->isAutoRepeat(), | 48 | event->isAutoRepeat(), |
| 51 | boost::numeric_cast<unsigned short>(event->count())); | 49 | event->count()); |
| 52 | QWebView::keyPressEvent(translatedEvent); | 50 | QWebView::keyPressEvent(translatedEvent); |
| 53 | delete translatedEvent; | 51 | delete translatedEvent; |
| 54 | } | 52 | } |
Swift