summary refs log tree commit diff
path: root/src/TextInputWidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextInputWidget.cc')
-rw-r--r--src/TextInputWidget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextInputWidget.cc b/src/TextInputWidget.cc

index 4927d195..c2931415 100644 --- a/src/TextInputWidget.cc +++ b/src/TextInputWidget.cc
@@ -47,7 +47,7 @@ FilteredTextEdit::FilteredTextEdit(QWidget *parent) connect(document()->documentLayout(), &QAbstractTextDocumentLayout::documentSizeChanged, this, - [=]() { emit heightChanged(document()->size().toSize().height()); }); + [this]() { emit heightChanged(document()->size().toSize().height()); }); working_history_.push_back(""); connect(this, &QTextEdit::textChanged, this, &FilteredTextEdit::textChanged); setAcceptRichText(false); @@ -330,7 +330,7 @@ TextInputWidget::TextInputWidget(QWidget *parent) input_->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); input_->setPlaceholderText(tr("Write a message...")); - connect(input_, &FilteredTextEdit::heightChanged, this, [=](int height) { + connect(input_, &FilteredTextEdit::heightChanged, this, [this](int height) { int textInputHeight = std::min(MAX_TEXTINPUT_HEIGHT, std::max(height, 32)); int widgetHeight = std::min(MAX_TEXTINPUT_HEIGHT, std::max(height, conf::textInput::height));