From b55d08df8e1444bbf31bab14fa37dcfeab85e422 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Wed, 25 Sep 2019 22:39:02 +0200 Subject: [PATCH] Renamed the pastedImage signal to imagePasted. --- src/widgets/helper/ResizingTextEdit.cpp | 4 ++-- src/widgets/helper/ResizingTextEdit.hpp | 2 +- src/widgets/splits/Split.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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); });