diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-11 15:03:54 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-11 15:05:09 (GMT) |
commit | 73f845a3f380c5a1adbac2cf29e9f36cc9b498cf (patch) | |
tree | 25655c928aa2d4a8c05e54f9c7c18203286fb8f3 /Swift/QtUI/QtChatView.h | |
parent | 8b09a21b14488a6ceb159607511b351d5cd60ac2 (diff) | |
download | swift-contrib-73f845a3f380c5a1adbac2cf29e9f36cc9b498cf.zip swift-contrib-73f845a3f380c5a1adbac2cf29e9f36cc9b498cf.tar.bz2 |
Proper handling of keypresses in the chat input that're meant for the chat log.
Resolves: #284
Diffstat (limited to 'Swift/QtUI/QtChatView.h')
-rw-r--r-- | Swift/QtUI/QtChatView.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatView.h b/Swift/QtUI/QtChatView.h index b2c1ac3..ea64265 100644 --- a/Swift/QtUI/QtChatView.h +++ b/Swift/QtUI/QtChatView.h @@ -12,11 +12,11 @@ #include "ChatSnippet.h" -class QWebView; class QWebPage; class QUrl; namespace Swift { + class QtWebView; class QtChatView : public QWidget { Q_OBJECT public: @@ -29,13 +29,14 @@ namespace Swift { void copySelectionToClipboard(); void scrollToBottom(); void handleLinkClicked(const QUrl&); + void handleKeyPressEvent(QKeyEvent* event); private slots: void handleViewLoadFinished(bool); private: bool viewReady_; - QWebView* webView_; + QtWebView* webView_; QWebPage* webPage_; QString previousContinuationElementID_; QString queuedMessages_; |