diff options
| -rw-r--r-- | Swift/QtUI/QtChatWindow.cpp | 2 | ||||
| -rw-r--r-- | Swift/QtUI/QtChatWindow.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index ffcbf15..3818991 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp | |||
| @@ -47,10 +47,11 @@ | |||
| 47 | 47 | ||
| 48 | #include <SwifTools/TabComplete.h> | 48 | #include <SwifTools/TabComplete.h> |
| 49 | 49 | ||
| 50 | #include <Swift/QtUI/QtAddBookmarkWindow.h> | 50 | #include <Swift/QtUI/QtAddBookmarkWindow.h> |
| 51 | #include <Swift/QtUI/QtEditBookmarkWindow.h> | 51 | #include <Swift/QtUI/QtEditBookmarkWindow.h> |
| 52 | #include <Swift/QtUI/QtEmoticonsGrid.h> | ||
| 52 | #include <Swift/QtUI/QtPlainChatView.h> | 53 | #include <Swift/QtUI/QtPlainChatView.h> |
| 53 | #include <Swift/QtUI/QtScaledAvatarCache.h> | 54 | #include <Swift/QtUI/QtScaledAvatarCache.h> |
| 54 | #include <Swift/QtUI/QtSettingsProvider.h> | 55 | #include <Swift/QtUI/QtSettingsProvider.h> |
| 55 | #include <Swift/QtUI/QtTextEdit.h> | 56 | #include <Swift/QtUI/QtTextEdit.h> |
| 56 | #include <Swift/QtUI/QtUISettingConstants.h> | 57 | #include <Swift/QtUI/QtUISettingConstants.h> |
| @@ -643,10 +644,11 @@ void QtChatWindow::handleEmoticonsButtonClicked() { | |||
| 643 | emoticonsMenu_->exec(QPoint(QCursor::pos().x() - menuSize.width(), QCursor::pos().y() - menuSize.height())); | 644 | emoticonsMenu_->exec(QPoint(QCursor::pos().x() - menuSize.width(), QCursor::pos().y() - menuSize.height())); |
| 644 | } | 645 | } |
| 645 | 646 | ||
| 646 | void QtChatWindow::handleEmoticonClicked(QString emoticonAsText) { | 647 | void QtChatWindow::handleEmoticonClicked(QString emoticonAsText) { |
| 647 | input_->textCursor().insertText(emoticonAsText); | 648 | input_->textCursor().insertText(emoticonAsText); |
| 649 | input_->setFocus(); | ||
| 648 | } | 650 | } |
| 649 | 651 | ||
| 650 | void QtChatWindow::handleTextInputReceivedFocus() { | 652 | void QtChatWindow::handleTextInputReceivedFocus() { |
| 651 | lastLineTracker_.setHasFocus(true); | 653 | lastLineTracker_.setHasFocus(true); |
| 652 | input_->setFocus(); | 654 | input_->setFocus(); |
diff --git a/Swift/QtUI/QtChatWindow.h b/Swift/QtUI/QtChatWindow.h index 19046c9..8d7db59 100644 --- a/Swift/QtUI/QtChatWindow.h +++ b/Swift/QtUI/QtChatWindow.h | |||
| @@ -18,11 +18,10 @@ | |||
| 18 | 18 | ||
| 19 | #include <SwifTools/LastLineTracker.h> | 19 | #include <SwifTools/LastLineTracker.h> |
| 20 | 20 | ||
| 21 | #include <Swift/QtUI/ChatSnippet.h> | 21 | #include <Swift/QtUI/ChatSnippet.h> |
| 22 | #include <Swift/QtUI/QtAffiliationEditor.h> | 22 | #include <Swift/QtUI/QtAffiliationEditor.h> |
| 23 | #include <Swift/QtUI/QtEmoticonsGrid.h> | ||
| 24 | #include <Swift/QtUI/QtMUCConfigurationWindow.h> | 23 | #include <Swift/QtUI/QtMUCConfigurationWindow.h> |
| 25 | #include <Swift/QtUI/QtSwiftUtil.h> | 24 | #include <Swift/QtUI/QtSwiftUtil.h> |
| 26 | #include <Swift/QtUI/QtTabbable.h> | 25 | #include <Swift/QtUI/QtTabbable.h> |
| 27 | 26 | ||
| 28 | class QTextEdit; | 27 | class QTextEdit; |
| @@ -39,10 +38,11 @@ namespace Swift { | |||
| 39 | class TreeWidget; | 38 | class TreeWidget; |
| 40 | class QtTextEdit; | 39 | class QtTextEdit; |
| 41 | class UIEventStream; | 40 | class UIEventStream; |
| 42 | class QtChatWindowJSBridge; | 41 | class QtChatWindowJSBridge; |
| 43 | class SettingsProvider; | 42 | class SettingsProvider; |
| 43 | class QtEmoticonsGrid; | ||
| 44 | 44 | ||
| 45 | class LabelModel : public QAbstractListModel { | 45 | class LabelModel : public QAbstractListModel { |
| 46 | Q_OBJECT | 46 | Q_OBJECT |
| 47 | public: | 47 | public: |
| 48 | LabelModel(QObject* parent = NULL) : QAbstractListModel(parent) {} | 48 | LabelModel(QObject* parent = NULL) : QAbstractListModel(parent) {} |
Swift