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

@@ -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);

View File

@@ -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:

View File

@@ -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:

View File

@@ -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();

View File

@@ -47,7 +47,7 @@ class MacFSListener : public FileSystemWatcherInterface {
Q_SIGNALS:
void PathChanged(const QString &path);
private slots:
private Q_SLOTS:
void UpdateStream();
private:

View File

@@ -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:

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -42,7 +42,7 @@ class NetworkTimeouts : public QObject {
protected:
void timerEvent(QTimerEvent *e) override;
private slots:
private Q_SLOTS:
void ReplyFinished();
private:

View File

@@ -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();

View File

@@ -77,7 +77,7 @@ class SystemTrayIcon : public QSystemTrayIcon {
void ShowHide();
void PlayPause();
private slots:
private Q_SLOTS:
void Clicked(const QSystemTrayIcon::ActivationReason);
private:

View File

@@ -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();

View File

@@ -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();

View File

@@ -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);

View File

@@ -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:

View File

@@ -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();