Implement Alt+Arrow key movement

Work on #92
This commit is contained in:
Rasmus Karlsson
2017-08-12 15:41:14 +02:00
parent a6573e83e0
commit ce61351fe3
6 changed files with 197 additions and 14 deletions
+9 -2
View File
@@ -68,6 +68,8 @@ ChatWidget::ChatWidget(ChannelManager &_channelManager, NotebookPage *parent)
std::bind(&ChatWidget::channelNameUpdated, this, std::placeholders::_1));
this->channelNameUpdated(this->channelName.getValue());
this->input.textInput.installEventFilter(parent);
}
ChatWidget::~ChatWidget()
@@ -193,9 +195,14 @@ void ChatWidget::updateGifEmotes()
this->view.updateGifEmotes();
}
void ChatWidget::giveFocus()
void ChatWidget::giveFocus(Qt::FocusReason reason)
{
this->input.textInput.setFocus();
this->input.textInput.setFocus(reason);
}
bool ChatWidget::hasFocus() const
{
return this->input.textInput.hasFocus();
}
void ChatWidget::paintEvent(QPaintEvent *)