Replace slots with Q_SLOTS
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class RadioView : public AutoExpandingTreeView {
|
||||
Q_SIGNALS:
|
||||
void GetChannels();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AddToPlaylist();
|
||||
void ReplacePlaylist();
|
||||
void OpenInNewPlaylist();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user