summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-09-08 07:59:58 (GMT)
committerKevin Smith <kevin.smith@isode.com>2015-09-18 08:07:39 (GMT)
commit9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2 (patch)
tree66594d99a94f1a23d4581c245d7829719061301c /Swift/QtUI/QtChatWindow.h
parent950881debd593de9b6d483894246af9ad0c9b1d9 (diff)
downloadswift-9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2.zip
swift-9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2.tar.bz2
Set keyboard focus to text input after selecting an emoticon
After selecting an emoticon on Windows the keyboard focus does not return to the text input. OS X did not exhibit that behavior. This fix explicitly sets the focus back to the text input after selection of an emoticon, as expected by the user. Test-Information: Verified the behavior on OS X 10.9.5 and Windows 7, both with Qt 5.4.2. Change-Id: I8737a7e3f6d1a6b7a8e60261e9bd14c7be8d07a6
Diffstat (limited to 'Swift/QtUI/QtChatWindow.h')
-rw-r--r--Swift/QtUI/QtChatWindow.h2
1 files changed, 1 insertions, 1 deletions
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
@@ -14,19 +14,18 @@
#include <QString>
#include <QTextCursor>
#include <Swift/Controllers/UIInterfaces/ChatWindow.h>
#include <SwifTools/LastLineTracker.h>
#include <Swift/QtUI/ChatSnippet.h>
#include <Swift/QtUI/QtAffiliationEditor.h>
-#include <Swift/QtUI/QtEmoticonsGrid.h>
#include <Swift/QtUI/QtMUCConfigurationWindow.h>
#include <Swift/QtUI/QtSwiftUtil.h>
#include <Swift/QtUI/QtTabbable.h>
class QTextEdit;
class QLineEdit;
class QComboBox;
class QLabel;
class QSplitter;
@@ -35,18 +34,19 @@ class QPushButton;
namespace Swift {
class QtChatView;
class QtOccupantListWidget;
class QtChatTheme;
class TreeWidget;
class QtTextEdit;
class UIEventStream;
class QtChatWindowJSBridge;
class SettingsProvider;
+ class QtEmoticonsGrid;
class LabelModel : public QAbstractListModel {
Q_OBJECT
public:
LabelModel(QObject* parent = NULL) : QAbstractListModel(parent) {}
virtual int rowCount(const QModelIndex& /*index*/) const {
return static_cast<int>(availableLabels_.size());
}