Replace slots with Q_SLOTS
This commit is contained in:
@@ -64,7 +64,7 @@ class SCollection : public QObject {
|
||||
private:
|
||||
void SyncPlaycountAndRatingToFiles();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
|
||||
void PauseWatcher();
|
||||
@@ -76,7 +76,7 @@ class SCollection : public QObject {
|
||||
|
||||
void IncrementalScan();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ExitReceived();
|
||||
void SongsPlaycountChanged(const SongList &songs, const bool save_tags = false);
|
||||
void SongsRatingChanged(const SongList &songs, const bool save_tags = false);
|
||||
|
||||
@@ -236,7 +236,7 @@ class CollectionBackend : public CollectionBackendInterface {
|
||||
void UpdateSongRatingAsync(const int id, const float rating, const bool save_tags = false);
|
||||
void UpdateSongsRatingAsync(const QList<int> &ids, const float rating, const bool save_tags = false);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void Exit();
|
||||
void GetAllSongs(const int id);
|
||||
void LoadDirectories();
|
||||
|
||||
@@ -54,7 +54,7 @@ class CollectionDirectoryModel : public QStandardItemModel {
|
||||
QMap<int, CollectionDirectory> directories() const { return directories_; }
|
||||
QStringList paths() const { return paths_; }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AddDirectory(const CollectionDirectory &directory);
|
||||
void RemoveDirectory(const CollectionDirectory &directory);
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ class CollectionFilterWidget : public QWidget {
|
||||
bool SearchFieldHasFocus() const;
|
||||
void FocusSearchField();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void UpdateGroupByActions();
|
||||
void SetFilterMode(CollectionFilterOptions::FilterMode filter_mode);
|
||||
void FocusOnFilter(QKeyEvent *e);
|
||||
@@ -99,7 +99,7 @@ class CollectionFilterWidget : public QWidget {
|
||||
protected:
|
||||
void keyReleaseEvent(QKeyEvent *e) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void GroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
|
||||
void GroupByClicked(QAction *action);
|
||||
void SaveGroupBy();
|
||||
|
||||
@@ -40,7 +40,7 @@ class CollectionItemDelegate : public QStyledItemDelegate {
|
||||
explicit CollectionItemDelegate(QObject *parent);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &idx) override;
|
||||
};
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
|
||||
void SongsAdded(const SongList &songs);
|
||||
void SongsRemoved(const SongList &songs);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void SetFilterMode(const CollectionFilterOptions::FilterMode filter_mode);
|
||||
void SetFilterMaxAge(const int filter_max_age);
|
||||
|
||||
@@ -253,7 +253,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
|
||||
void ClearItemPixmapCache(CollectionItem *item);
|
||||
static qint64 MaximumCacheSize(Settings *s, const char *size_id, const char *size_unit_id, const qint64 cache_size_default);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Reload();
|
||||
void ScheduleReset();
|
||||
void ProcessUpdate();
|
||||
|
||||
@@ -69,7 +69,7 @@ class CollectionView : public AutoExpandingTreeView {
|
||||
int TotalArtists() const;
|
||||
int TotalAlbums() const;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void TotalSongCountUpdated(const int count);
|
||||
void TotalArtistCountUpdated(const int count);
|
||||
void TotalAlbumCountUpdated(const int count);
|
||||
@@ -97,7 +97,7 @@ class CollectionView : public AutoExpandingTreeView {
|
||||
void mouseReleaseEvent(QMouseEvent *e) override;
|
||||
void contextMenuEvent(QContextMenuEvent *e) override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Load();
|
||||
void AddToPlaylist();
|
||||
void AddToPlaylistEnqueue();
|
||||
|
||||
@@ -85,7 +85,7 @@ class CollectionWatcher : public QObject {
|
||||
|
||||
void ScanStarted(const int task_id);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void AddDirectory(const CollectionDirectory &dir, const CollectionSubdirectoryList &subdirs);
|
||||
void RemoveDirectory(const CollectionDirectory &dir);
|
||||
void SetRescanPaused(bool pause);
|
||||
@@ -166,7 +166,7 @@ class CollectionWatcher : public QObject {
|
||||
bool known_subdirs_dirty_;
|
||||
};
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
void Exit();
|
||||
void DirectoryChanged(const QString &subdir);
|
||||
|
||||
@@ -43,14 +43,14 @@ class GroupByDialog : public QDialog {
|
||||
explicit GroupByDialog(QWidget *parent = nullptr);
|
||||
~GroupByDialog() override;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void CollectionGroupingChanged(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
|
||||
void accept() override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void Accepted(const CollectionModel::Grouping g, const bool separate_albums_by_grouping);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void Reset();
|
||||
|
||||
private:
|
||||
|
||||
@@ -54,7 +54,7 @@ class SavedGroupingManager : public QDialog {
|
||||
Q_SIGNALS:
|
||||
void UpdateGroupByActions();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void UpdateButtonState();
|
||||
void Remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user