summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-06-12 19:09:05 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-06-12 19:09:05 -0400
commit9f310fed09f3d5fd7f118cf0365e98ad402c4d99 (patch)
tree04dbeabb4007bcf5213bb65da5423370a1047eaf /src/TextInputWidget.cpp
parentUpdate CHANGELOG (diff)
parentAdd style for reply popup. Fix ALL of the linting issues (diff)
downloadnheko-9f310fed09f3d5fd7f118cf0365e98ad402c4d99.tar.xz
Merge branch '0.7.0-dev' of ssh://github.com/Nheko-Reborn/nheko into 0.7.0-dev
Diffstat (limited to 'src/TextInputWidget.cpp')
-rw-r--r--src/TextInputWidget.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index b4251a0e..dc41b4d3 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -76,7 +76,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent) &FilteredTextEdit::uploadData); connect(this, &FilteredTextEdit::resultsRetrieved, this, &FilteredTextEdit::showResults); - connect(&replyPopup_, &ReplyPopup::userSelected, this, [this](const QString &text) { + connect(&replyPopup_, &ReplyPopup::userSelected, this, [](const QString &text) { // TODO: Show user avatar window. nhlog::ui()->info("User selected: " + text.toStdString()); }); @@ -176,18 +176,16 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event) } if (replyPopup_.isVisible()) { - switch (event->key()) - { + switch (event->key()) { case Qt::Key_Escape: closeReply(); return; - + default: break; } } - switch (event->key()) { case Qt::Key_At: atTriggerPosition_ = textCursor().position();