Replace signals with Q_SIGNALS

This commit is contained in:
Jonas Kvinge
2024-08-11 23:23:12 +02:00
parent 9666feca37
commit 358da72ffe
136 changed files with 141 additions and 141 deletions

View File

@@ -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();

View File

@@ -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:

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -40,7 +40,7 @@ class CoverExportRunnable : public QObject, public QRunnable {
void run() override;
signals:
Q_SIGNALS:
void CoverExported();
void CoverSkipped();

View File

@@ -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);

View File

@@ -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);