Automatically grab clipboard contents for "Load cover from URL" dialog.
Fixes issue #1816
This commit is contained in:
parent
a1ece63f3a
commit
4ba3cc9563
|
@ -1112,6 +1112,9 @@ msgstr ""
|
||||||
msgid "Encoding mode"
|
msgid "Encoding mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Enter a URL to download a cover from the Internet:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Enter a new name for this playlist"
|
msgid "Enter a new name for this playlist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1119,9 +1122,6 @@ msgid ""
|
||||||
"Enter an <b>artist</b> or <b>tag</b> to start listening to Last.fm radio."
|
"Enter an <b>artist</b> or <b>tag</b> to start listening to Last.fm radio."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Enter an URL to download a cover from the Internet:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "Enter search terms here"
|
msgid "Enter search terms here"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -1102,6 +1102,9 @@ msgstr ""
|
||||||
msgid "Encoding mode"
|
msgid "Encoding mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Enter a URL to download a cover from the Internet:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Enter a new name for this playlist"
|
msgid "Enter a new name for this playlist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1109,9 +1112,6 @@ msgid ""
|
||||||
"Enter an <b>artist</b> or <b>tag</b> to start listening to Last.fm radio."
|
"Enter an <b>artist</b> or <b>tag</b> to start listening to Last.fm radio."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Enter an URL to download a cover from the Internet:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "Enter search terms here"
|
msgid "Enter search terms here"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
#include "core/network.h"
|
#include "core/network.h"
|
||||||
#include "covers/albumcoverloader.h"
|
#include "covers/albumcoverloader.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QClipboard>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
|
@ -43,6 +45,9 @@ QImage CoverFromURLDialog::Exec() {
|
||||||
ui_->url->setText("");;
|
ui_->url->setText("");;
|
||||||
last_image_ = QImage();
|
last_image_ = QImage();
|
||||||
|
|
||||||
|
QClipboard* clipboard = QApplication::clipboard();
|
||||||
|
ui_->url->setText(clipboard->text());
|
||||||
|
|
||||||
exec();
|
exec();
|
||||||
return last_image_;
|
return last_image_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Enter an URL to download a cover from the Internet:</string>
|
<string>Enter a URL to download a cover from the Internet:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue