Replace signals with Q_SIGNALS
This commit is contained in:
@@ -162,7 +162,7 @@ class AlbumCoverChoiceController : public QWidget {
|
||||
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
|
||||
void SaveEmbeddedCoverFinished(TagReaderReply *reply, Song song, const bool art_embedded);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &error);
|
||||
void AutomaticCoverSearchDone();
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class AlbumCoverExporter : public QObject {
|
||||
|
||||
int request_count() { return static_cast<int>(requests_.size()); }
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AlbumCoversExportUpdate(const int exported, const int skipped, const int all);
|
||||
|
||||
private slots:
|
||||
|
||||
@@ -117,7 +117,7 @@ class AlbumCoverFetcher : public QObject {
|
||||
|
||||
void Clear();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AlbumCoverFetched(const quint64 request_id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
|
||||
void SearchFinished(const quint64 request_id, const CoverProviderSearchResults &results, const CoverSearchStatistics &statistics);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
|
||||
static bool CoverProviderSearchResultCompareNumber(const CoverProviderSearchResult &a, const CoverProviderSearchResult &b);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
// It's the end of search (when there was no fetch-me-a-cover request).
|
||||
void SearchFinished(quint64, const CoverProviderSearchResults &results);
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class AlbumCoverLoader : public QObject {
|
||||
void CancelTask(const quint64 id);
|
||||
void CancelTasks(const QSet<quint64> &ids);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ class AlbumCoverManager : public QMainWindow {
|
||||
|
||||
void LoadAlbumCoverAsync(AlbumItem *album_item);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &error);
|
||||
void AddToPlaylist(QMimeData *data);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class CoverExportRunnable : public QObject, public QRunnable {
|
||||
|
||||
void run() override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void CoverExported();
|
||||
void CoverSkipped();
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class CoverProvider : public QObject {
|
||||
|
||||
virtual void Error(const QString &error, const QVariant &debug = QVariant()) = 0;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AuthenticationComplete(const bool success, const QStringList &errors = QStringList());
|
||||
void AuthenticationSuccess();
|
||||
void AuthenticationFailure(const QStringList &errors);
|
||||
|
||||
@@ -53,7 +53,7 @@ class CurrentAlbumCoverLoader : public QObject {
|
||||
void ReloadSettings();
|
||||
void LoadAlbumCover(const Song &song);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
||||
void ThumbnailLoaded(const Song &song, const QUrl &thumbnail_uri, const QImage &image);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user