mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Renamed the pastedImage signal to imagePasted.
This commit is contained in:
parent
4e9951371f
commit
b55d08df8e
|
@ -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.
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
pajlada::Signals::Signal<QKeyEvent *> keyPressed;
|
||||
pajlada::Signals::NoArgSignal focused;
|
||||
pajlada::Signals::NoArgSignal focusLost;
|
||||
pajlada::Signals::Signal<const QMimeData *> pastedImage;
|
||||
pajlada::Signals::Signal<const QMimeData *> imagePasted;
|
||||
|
||||
void setCompleter(QCompleter *c);
|
||||
QCompleter *getCompleter() const;
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue