Add support for saving embedded album covers

Fixes #286
This commit is contained in:
Jonas Kvinge
2021-02-26 21:03:51 +01:00
parent e4c89c1aed
commit 133f094d72
79 changed files with 3509 additions and 1804 deletions

View File

@@ -28,6 +28,8 @@
#include <QString>
#include <QImage>
#include "albumcoverimageresult.h"
class QWidget;
class NetworkAccessManager;
@@ -42,7 +44,7 @@ class CoverFromURLDialog : public QDialog {
~CoverFromURLDialog() override;
// Opens the dialog. This returns an image found at the URL chosen by user or null image if the dialog got rejected.
QImage Exec();
AlbumCoverImageResult Exec();
private slots:
void accept() override;
@@ -52,7 +54,7 @@ class CoverFromURLDialog : public QDialog {
Ui_CoverFromURLDialog *ui_;
NetworkAccessManager *network_;
QImage last_image_;
AlbumCoverImageResult last_album_cover_;
};
#endif // COVERFROMURLDIALOG_H