Replace slots with Q_SLOTS
This commit is contained in:
@@ -112,10 +112,10 @@ class Application : public QObject {
|
||||
QThread *MoveToNewThread(QObject *object);
|
||||
static void MoveToThread(QObject *object, QThread *thread);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ExitReceived();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void AddError(const QString &message);
|
||||
void ReloadSettings();
|
||||
void OpenSettingsDialogAtPage(SettingsDialog::Page page);
|
||||
|
||||
@@ -88,10 +88,10 @@ class Database : public QObject {
|
||||
void Error(const QString &error);
|
||||
void Errors(const QStringList &errors);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Exit();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void DoBackup();
|
||||
|
||||
private:
|
||||
|
||||
@@ -47,7 +47,7 @@ class DeleteFiles : public QObject {
|
||||
Q_SIGNALS:
|
||||
void Finished(const SongList &songs_with_errors);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ProcessSomeFiles();
|
||||
|
||||
private:
|
||||
|
||||
@@ -48,7 +48,7 @@ class LocalRedirectServer : public QTcpServer {
|
||||
Q_SIGNALS:
|
||||
void Finished();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void NewConnection();
|
||||
void incomingConnection(qintptr socket_descriptor) override;
|
||||
void Encrypted();
|
||||
|
||||
@@ -47,7 +47,7 @@ class MacFSListener : public FileSystemWatcherInterface {
|
||||
Q_SIGNALS:
|
||||
void PathChanged(const QString &path);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void UpdateStream();
|
||||
|
||||
private:
|
||||
|
||||
@@ -71,7 +71,7 @@ class SystemTrayIcon : public QObject {
|
||||
QPixmap CreateIcon(const QPixmap &icon, const QPixmap &grey_icon);
|
||||
void UpdateIcon();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ActionChanged();
|
||||
|
||||
Q_SIGNALS:
|
||||
|
||||
@@ -139,7 +139,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
|
||||
void AuthorizationUrlReceived(const QUrl &url);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void FilePathChanged(const QString &path);
|
||||
|
||||
void EngineChanged(const EngineBase::Type enginetype);
|
||||
@@ -274,7 +274,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
|
||||
void DeleteFilesFinished(const SongList &songs_with_errors);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void CommandlineOptionsReceived(const QByteArray &string_options);
|
||||
void Raise();
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class MergedProxyModel : public QAbstractProxyModel {
|
||||
Q_SIGNALS:
|
||||
void SubModelReset(const QModelIndex root, QAbstractItemModel *model);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void SourceModelReset();
|
||||
void SubModelAboutToBeReset();
|
||||
void SubModelResetSlot();
|
||||
|
||||
@@ -206,7 +206,7 @@ class Mpris2 : public QObject {
|
||||
// Playlist
|
||||
void PlaylistChanged(const MprisPlaylist &playlist);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result = AlbumCoverLoaderResult());
|
||||
void EngineStateChanged(EngineBase::State newState);
|
||||
void VolumeChanged();
|
||||
|
||||
@@ -42,7 +42,7 @@ class NetworkTimeouts : public QObject {
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *e) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ReplyFinished();
|
||||
|
||||
private:
|
||||
|
||||
@@ -64,7 +64,7 @@ class PlayerInterface : public QObject {
|
||||
virtual void RegisterUrlHandler(UrlHandler *handler) = 0;
|
||||
virtual void UnregisterUrlHandler(UrlHandler *handler) = 0;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
virtual void ReloadSettings() = 0;
|
||||
virtual void LoadVolume() = 0;
|
||||
virtual void SaveVolume() = 0;
|
||||
@@ -155,7 +155,7 @@ class Player : public PlayerInterface {
|
||||
void SetAnalyzer(AnalyzerContainer *analyzer) { analyzer_ = analyzer; }
|
||||
void SetEqualizer(SharedPtr<Equalizer> equalizer) { equalizer_ = equalizer; }
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ReloadSettings() override;
|
||||
void LoadVolume() override;
|
||||
void SaveVolume() override;
|
||||
@@ -193,7 +193,7 @@ class Player : public PlayerInterface {
|
||||
Q_SIGNALS:
|
||||
void EngineChanged(const EngineBase::Type Type);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void EngineStateChanged(const EngineBase::State);
|
||||
void EngineMetadataReceived(const EngineMetadata &engine_metadata);
|
||||
void TrackAboutToEnd();
|
||||
|
||||
@@ -77,7 +77,7 @@ class SystemTrayIcon : public QSystemTrayIcon {
|
||||
void ShowHide();
|
||||
void PlayPause();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Clicked(const QSystemTrayIcon::ActivationReason);
|
||||
|
||||
private:
|
||||
|
||||
@@ -91,7 +91,7 @@ class SongLoader : public QObject {
|
||||
void LoadAudioCDFinished(const bool success);
|
||||
void LoadRemoteFinished();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ScheduleTimeout();
|
||||
void Timeout();
|
||||
void StopTypefind();
|
||||
|
||||
@@ -49,7 +49,7 @@ class StandardItemIconLoader : public QObject {
|
||||
void LoadIcon(const QUrl &art_automatic, const QUrl &art_manual, QStandardItem *for_item);
|
||||
void LoadIcon(const Song &song, QStandardItem *for_item);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AlbumCoverLoaded(const quint64 id, const AlbumCoverLoaderResult &result);
|
||||
void RowsAboutToBeRemoved(const QModelIndex &parent, int begin, int end);
|
||||
void ModelReset();
|
||||
|
||||
@@ -116,11 +116,11 @@ class TagReaderClient : public QObject {
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Exit();
|
||||
void WorkerFailedToStart();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void SaveSongsPlaycount(const SongList &songs);
|
||||
void SaveSongsRating(const SongList &songs);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class ThreadSafeNetworkDiskCache : public QAbstractNetworkCache {
|
||||
bool remove(const QUrl &url) override;
|
||||
void updateMetaData(const QNetworkCacheMetaData &metaData) override;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void clear() override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -49,7 +49,7 @@ class Windows7ThumbBar : public QObject {
|
||||
ITaskbarList3 *CreateTaskbarList();
|
||||
void SetupButton(const QAction *action, THUMBBUTTON *button);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ActionChangedTriggered();
|
||||
void ActionChanged();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user