Renamed the pastedImage signal to imagePasted.

This commit is contained in:
Mm2PL 2019-09-25 22:39:02 +02:00
parent 4e9951371f
commit b55d08df8e
No known key found for this signature in database
GPG key ID: 1C400DA5602DE62E
3 changed files with 4 additions and 4 deletions

View file

@ -274,7 +274,7 @@ void ResizingTextEdit::insertFromMimeData(const QMimeData *source)
{ {
if (source->hasImage() || source->hasUrls()) if (source->hasImage() || source->hasUrls())
{ {
this->pastedImage.invoke(source); this->imagePasted.invoke(source);
} }
else else
{ {
@ -298,7 +298,7 @@ void ResizingTextEdit::dropEvent(QDropEvent *event)
{ {
if (event->mimeData()->hasImage() || event->mimeData()->hasUrls()) 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. else // allow for previous functionality of dropping text.
{ {

View file

@ -19,7 +19,7 @@ public:
pajlada::Signals::Signal<QKeyEvent *> keyPressed; pajlada::Signals::Signal<QKeyEvent *> keyPressed;
pajlada::Signals::NoArgSignal focused; pajlada::Signals::NoArgSignal focused;
pajlada::Signals::NoArgSignal focusLost; pajlada::Signals::NoArgSignal focusLost;
pajlada::Signals::Signal<const QMimeData *> pastedImage; pajlada::Signals::Signal<const QMimeData *> imagePasted;
void setCompleter(QCompleter *c); void setCompleter(QCompleter *c);
QCompleter *getCompleter() const; QCompleter *getCompleter() const;

View file

@ -207,7 +207,7 @@ Split::Split(QWidget *parent)
[this] { this->focused.invoke(); }); [this] { this->focused.invoke(); });
this->input_->ui_.textEdit->focusLost.connect( this->input_->ui_.textEdit->focusLost.connect(
[this] { this->focusLost.invoke(); }); [this] { this->focusLost.invoke(); });
this->input_->ui_.textEdit->pastedImage.connect( this->input_->ui_.textEdit->imagePasted.connect(
[this](const QMimeData *source) { [this](const QMimeData *source) {
upload(source, this->getChannel(), *this->input_->ui_.textEdit); upload(source, this->getChannel(), *this->input_->ui_.textEdit);
}); });