diff --git a/src/widgets/helper/ResizingTextEdit.cpp b/src/widgets/helper/ResizingTextEdit.cpp index 7f4836199..6f0464d10 100644 --- a/src/widgets/helper/ResizingTextEdit.cpp +++ b/src/widgets/helper/ResizingTextEdit.cpp @@ -274,7 +274,7 @@ void ResizingTextEdit::insertFromMimeData(const QMimeData *source) { if (source->hasImage() || source->hasUrls()) { - this->pastedImage.invoke(source); + this->imagePasted.invoke(source); } else { @@ -298,7 +298,7 @@ void ResizingTextEdit::dropEvent(QDropEvent *event) { if (event->mimeData()->hasImage() || event->mimeData()->hasUrls()) { - this->pastedImage.invoke(event->mimeData()); + this->imagePasted.invoke(event->mimeData()); } else // allow for previous functionality of dropping text. { diff --git a/src/widgets/helper/ResizingTextEdit.hpp b/src/widgets/helper/ResizingTextEdit.hpp index df6649048..bc81272d9 100644 --- a/src/widgets/helper/ResizingTextEdit.hpp +++ b/src/widgets/helper/ResizingTextEdit.hpp @@ -19,7 +19,7 @@ public: pajlada::Signals::Signal keyPressed; pajlada::Signals::NoArgSignal focused; pajlada::Signals::NoArgSignal focusLost; - pajlada::Signals::Signal pastedImage; + pajlada::Signals::Signal imagePasted; void setCompleter(QCompleter *c); QCompleter *getCompleter() const; diff --git a/src/widgets/splits/Split.cpp b/src/widgets/splits/Split.cpp index 7b066b052..9867281d4 100644 --- a/src/widgets/splits/Split.cpp +++ b/src/widgets/splits/Split.cpp @@ -207,7 +207,7 @@ Split::Split(QWidget *parent) [this] { this->focused.invoke(); }); this->input_->ui_.textEdit->focusLost.connect( [this] { this->focusLost.invoke(); }); - this->input_->ui_.textEdit->pastedImage.connect( + this->input_->ui_.textEdit->imagePasted.connect( [this](const QMimeData *source) { upload(source, this->getChannel(), *this->input_->ui_.textEdit); });