Replace slots with Q_SLOTS

This commit is contained in:
Jonas Kvinge
2024-08-12 01:06:15 +02:00
parent f624b7a331
commit cbce9892d5
209 changed files with 277 additions and 277 deletions

View File

@@ -41,7 +41,7 @@ class RadioBackend : public QObject {
void GetChannelsAsync();
void DeleteChannelsAsync();
private slots:
private Q_SLOTS:
void AddChannels(const RadioChannelList &channels);
void GetChannels();
void DeleteChannels();
@@ -50,7 +50,7 @@ class RadioBackend : public QObject {
void NewChannels(const RadioChannelList &channels);
void ExitFinished();
private slots:
private Q_SLOTS:
void Exit();
private:

View File

@@ -82,7 +82,7 @@ class RadioModel : public SimpleTreeModel<RadioItem> {
QPixmap ChannelIcon(const QModelIndex &idx);
QString SortText(QString text);
private slots:
private Q_SLOTS:
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
private:

View File

@@ -41,10 +41,10 @@ class RadioParadiseService : public RadioService {
void Abort();
public slots:
public Q_SLOTS:
void GetChannels() override;
private slots:
private Q_SLOTS:
void GetChannelsReply(QNetworkReply *reply, const int task_id);
private:

View File

@@ -56,7 +56,7 @@ class RadioService : public QObject {
Q_SIGNALS:
void NewChannels(const RadioChannelList &channels = RadioChannelList());
public slots:
public Q_SLOTS:
virtual void GetChannels() = 0;
protected:

View File

@@ -56,12 +56,12 @@ class RadioServices : public QObject {
SharedPtr<RadioBackend> radio_backend() const { return backend_; }
QSortFilterProxyModel *sort_model() const { return sort_model_; }
private slots:
private Q_SLOTS:
void ServiceDeleted();
void GotChannelsFromBackend(const RadioChannelList &channels);
void GotChannelsFromService(const RadioChannelList &channels);
public slots:
public Q_SLOTS:
void GetChannels();
void RefreshChannels();

View File

@@ -45,7 +45,7 @@ class RadioView : public AutoExpandingTreeView {
Q_SIGNALS:
void GetChannels();
private slots:
private Q_SLOTS:
void AddToPlaylist();
void ReplacePlaylist();
void OpenInNewPlaylist();

View File

@@ -42,13 +42,13 @@ class SomaFMService : public RadioService {
void Abort();
public slots:
public Q_SLOTS:
void GetChannels() override;
private:
void GetStreamUrl(const int task_id, const RadioChannel &channel);
private slots:
private Q_SLOTS:
void GetChannelsReply(QNetworkReply *reply, const int task_id);
void GetStreamUrlsReply(QNetworkReply *reply, const int task_id, RadioChannel channel);