Replace slots with Q_SLOTS
This commit is contained in:
@@ -47,7 +47,7 @@ class ChartLyricsProvider : public LyricsProvider {
|
||||
private:
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
|
||||
|
||||
private:
|
||||
|
||||
@@ -79,7 +79,7 @@ class GeniusLyricsProvider : public JsonLyricsProvider {
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
void EndSearch(GeniusLyricsSearchContextPtr search, const GeniusLyricsLyricContext &lyric = GeniusLyricsLyricContext());
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
void RedirectArrived();
|
||||
void AccessTokenRequestFinished(QNetworkReply *reply);
|
||||
|
||||
@@ -52,7 +52,7 @@ class HtmlLyricsProvider : public LyricsProvider {
|
||||
virtual QUrl Url(const LyricsSearchRequest &request) = 0;
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
protected slots:
|
||||
protected Q_SLOTS:
|
||||
virtual void HandleLyricsReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -48,7 +48,7 @@ class LoloLyricsProvider : public LyricsProvider {
|
||||
private:
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
|
||||
|
||||
private:
|
||||
|
||||
@@ -63,7 +63,7 @@ class LyricsFetcher : public QObject {
|
||||
void LyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics);
|
||||
void SearchFinished(const quint64 request_id, const LyricsSearchResults &results);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void SingleSearchFinished(const quint64 request_id, const LyricsSearchResults &results);
|
||||
void SingleLyricsFetched(const quint64 request_id, const QString &provider, const QString &lyrics);
|
||||
void StartRequests();
|
||||
|
||||
@@ -47,7 +47,7 @@ class LyricsFetcherSearch : public QObject {
|
||||
void SearchFinished(const quint64 id, const LyricsSearchResults &results);
|
||||
void LyricsFetched(const quint64 id, const QString &provider, const QString &lyrics);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ProviderSearchFinished(const int id, const LyricsSearchResults &results);
|
||||
void TerminateSearch();
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class LyricsProviders : public QObject {
|
||||
bool HasAnyProviders() const { return !lyrics_providers_.isEmpty(); }
|
||||
int NextId();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ProviderDestroyed();
|
||||
|
||||
private:
|
||||
|
||||
@@ -66,7 +66,7 @@ class MusixmatchLyricsProvider : public JsonLyricsProvider, public MusixmatchPro
|
||||
void EndSearch(LyricsSearchContextPtr search, const QUrl &url = QUrl());
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, LyricsSearchContextPtr search);
|
||||
void HandleLyricsReply(QNetworkReply *reply, LyricsSearchContextPtr search, const QUrl &url);
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class OVHLyricsProvider : public JsonLyricsProvider {
|
||||
private:
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user