Replace slots with Q_SLOTS
This commit is contained in:
@@ -155,10 +155,10 @@ class AlbumCoverChoiceController : public QWidget {
|
||||
|
||||
static bool CanAcceptDrag(const QDragEnterEvent *e);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void set_save_embedded_cover_override(const bool value) { save_embedded_cover_override_ = value; }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
|
||||
void SaveEmbeddedCoverFinished(TagReaderReply *reply, Song song, const bool art_embedded);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ class AlbumCoverExport : public QDialog {
|
||||
|
||||
DialogResult Exec();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||
void ForceSizeToggled(Qt::CheckState state);
|
||||
#else
|
||||
|
||||
@@ -51,7 +51,7 @@ class AlbumCoverExporter : public QObject {
|
||||
Q_SIGNALS:
|
||||
void AlbumCoversExportUpdate(const int exported, const int skipped, const int all);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void CoverExported();
|
||||
void CoverSkipped();
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ class AlbumCoverFetcher : public QObject {
|
||||
void AlbumCoverFetched(const quint64 request_id, const AlbumCoverImageResult &result, const CoverSearchStatistics &statistics);
|
||||
void SearchFinished(const quint64 request_id, const CoverProviderSearchResults &results, const CoverSearchStatistics &statistics);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void SingleSearchFinished(const quint64 id, const CoverProviderSearchResults &results);
|
||||
void SingleCoverFetched(const quint64 id, const AlbumCoverImageResult &result);
|
||||
void StartRequests();
|
||||
|
||||
@@ -72,7 +72,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
// It's the end of search and we've fetched a cover.
|
||||
void AlbumCoverFetched(const quint64 id, const AlbumCoverImageResult &result);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ProviderSearchResults(const int id, const CoverProviderSearchResults &results);
|
||||
void ProviderSearchFinished(const int id, const CoverProviderSearchResults &results);
|
||||
void ProviderCoverFetchFinished(QNetworkReply *reply);
|
||||
|
||||
@@ -117,7 +117,7 @@ class AlbumCoverLoader : public QObject {
|
||||
LoadImageResult LoadRemoteUrlImage(TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url);
|
||||
void FinishTask(TaskPtr task, const AlbumCoverLoaderResult::Type result_type);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Exit();
|
||||
void ProcessTasks();
|
||||
void LoadRemoteImageFinished(QNetworkReply *reply, AlbumCoverLoader::TaskPtr task, const AlbumCoverLoaderResult::Type result_type, const QUrl &cover_url);
|
||||
|
||||
@@ -153,7 +153,7 @@ class AlbumCoverManager : public QMainWindow {
|
||||
void Error(const QString &error);
|
||||
void AddToPlaylist(QMimeData *data);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ArtistChanged(QListWidgetItem *current);
|
||||
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
||||
void UpdateFilter();
|
||||
|
||||
@@ -85,7 +85,7 @@ class AlbumCoverSearcher : public QDialog {
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent*) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Search();
|
||||
void SearchFinished(const quint64 id, const CoverProviderSearchResults &results);
|
||||
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
||||
|
||||
@@ -47,7 +47,7 @@ class CoverFromURLDialog : public QDialog {
|
||||
// Opens the dialog. This returns an image found at the URL chosen by user or null image if the dialog got rejected.
|
||||
AlbumCoverImageResult Exec();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void accept() override;
|
||||
void LoadCoverFromURLFinished();
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class CoverProviders : public QObject {
|
||||
|
||||
int NextId();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ProviderDestroyed();
|
||||
|
||||
private:
|
||||
|
||||
@@ -49,7 +49,7 @@ class CurrentAlbumCoverLoader : public QObject {
|
||||
|
||||
void ReloadSettingsAsync();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
void LoadAlbumCover(const Song &song);
|
||||
|
||||
@@ -57,7 +57,7 @@ class CurrentAlbumCoverLoader : public QObject {
|
||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
||||
void ThumbnailLoaded(const Song &song, const QUrl &thumbnail_uri, const QImage &image);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AlbumCoverReady(const quint64 id, AlbumCoverLoaderResult result);
|
||||
|
||||
private:
|
||||
|
||||
@@ -46,7 +46,7 @@ class DeezerCoverProvider : public JsonCoverProvider {
|
||||
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
|
||||
void CancelSearch(const int id) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id);
|
||||
|
||||
private:
|
||||
|
||||
@@ -84,7 +84,7 @@ class DiscogsCoverProvider : public JsonCoverProvider {
|
||||
void EndSearch(SharedPtr<DiscogsCoverSearchContext> search, const quint64 release_id = 0);
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void FlushRequests();
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id);
|
||||
void HandleReleaseReply(QNetworkReply *reply, const int search_id, const quint64 release_id);
|
||||
|
||||
@@ -45,7 +45,7 @@ class LastFmCoverProvider : public JsonCoverProvider {
|
||||
|
||||
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void QueryFinished(QNetworkReply *reply, const int id, const QString &type);
|
||||
|
||||
private:
|
||||
|
||||
@@ -47,7 +47,7 @@ class MusicbrainzCoverProvider : public JsonCoverProvider {
|
||||
|
||||
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void FlushRequests();
|
||||
void HandleSearchReply(QNetworkReply *reply, const int search_id);
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class MusixmatchCoverProvider : public JsonCoverProvider, MusixmatchProvider {
|
||||
private:
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id, const QString &artist, const QString &album);
|
||||
|
||||
private:
|
||||
|
||||
@@ -70,7 +70,7 @@ class OpenTidalCoverProvider : public JsonCoverProvider {
|
||||
void FinishAllSearches();
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void FlushRequests();
|
||||
void LoginFinished(QNetworkReply *reply);
|
||||
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
|
||||
@@ -51,7 +51,7 @@ class QobuzCoverProvider : public JsonCoverProvider {
|
||||
bool IsAuthenticated() const override { return service_ && service_->authenticated(); }
|
||||
void Deauthenticate() override { if (service_) service_->Logout(); }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id);
|
||||
|
||||
private:
|
||||
|
||||
@@ -57,7 +57,7 @@ class SpotifyCoverProvider : public JsonCoverProvider {
|
||||
if (service_) service_->Deauthenticate();
|
||||
}
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id, const QString &extract);
|
||||
|
||||
private:
|
||||
|
||||
@@ -55,7 +55,7 @@ class TidalCoverProvider : public JsonCoverProvider {
|
||||
if (service_) service_->Logout();
|
||||
}
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user