Replace signals with Q_SIGNALS
This commit is contained in:
@@ -29,7 +29,7 @@ class DynamicPlaylistControls : public QWidget {
|
||||
DynamicPlaylistControls(QWidget *parent = nullptr);
|
||||
~DynamicPlaylistControls() override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Expand();
|
||||
void Repopulate();
|
||||
void TurnOff();
|
||||
|
||||
@@ -304,7 +304,7 @@ class Playlist : public QAbstractListModel {
|
||||
|
||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void RestoreFinished();
|
||||
void PlaylistLoaded();
|
||||
void CurrentSongChanged(const Song &metadata);
|
||||
|
||||
@@ -90,7 +90,7 @@ class PlaylistBackend : public QObject {
|
||||
void Exit();
|
||||
void SavePlaylist(const int playlist, const PlaylistItemPtrList &items, const int last_played, PlaylistGeneratorPtr dynamic);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ExitFinished();
|
||||
|
||||
private:
|
||||
|
||||
@@ -65,7 +65,7 @@ class PlaylistContainer : public QWidget {
|
||||
|
||||
bool eventFilter(QObject *objectWatched, QEvent *event) override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void UndoRedoActionsChanged(QAction *undo, QAction *redo);
|
||||
void ViewSelectionModelChanged();
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class PlaylistHeader : public StretchHeaderView {
|
||||
void enterEvent(QEvent*) override;
|
||||
#endif
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void SectionVisibilityChanged(const int logical_index, const bool visible);
|
||||
void MouseEntered();
|
||||
void SectionRatingLockStatusChanged(const bool);
|
||||
|
||||
@@ -80,7 +80,7 @@ class PlaylistListModel : public QStandardItemModel {
|
||||
// QStandardItemModel
|
||||
bool setData(const QModelIndex &idx, const QVariant &value, int role) override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void PlaylistPathChanged(const int id, const QString &new_path);
|
||||
void PlaylistRenamed(const int id, const QString &new_name);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class PlaylistListView : public AutoExpandingTreeView {
|
||||
|
||||
bool ItemsSelected() const;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void ItemsSelectedChanged(const bool);
|
||||
void ItemMimeDataDroppedSignal(const QModelIndex &proxy_idx, const QMimeData *q_mimedata);
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class PlaylistManagerInterface : public QObject {
|
||||
// Rate current song using 0 - 5 scale.
|
||||
virtual void RateCurrentSong2(const int rating) = 0;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void PlaylistManagerInitialized();
|
||||
void AllPlaylistsLoaded();
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ class PlaylistSequence : public QWidget {
|
||||
void CycleShuffleMode();
|
||||
void CycleRepeatMode();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void RepeatModeChanged(const PlaylistSequence::RepeatMode mode);
|
||||
void ShuffleModeChanged(const PlaylistSequence::ShuffleMode mode);
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class PlaylistTabBar : public QTabBar {
|
||||
void RemoveTab(const int id);
|
||||
void InsertTab(const int id, const int index, const QString &text, const bool favorite);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void CurrentIdChanged(const int id);
|
||||
void Rename(const int id, const QString &name);
|
||||
void Close(const int id);
|
||||
|
||||
@@ -104,7 +104,7 @@ class PlaylistView : public QTreeView {
|
||||
void SetColumnAlignment(const int section, const Qt::Alignment alignment);
|
||||
void JumpToCurrentlyPlayingTrack();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void PlayItem(const QModelIndex idx, const Playlist::AutoScroll autoscroll);
|
||||
void PlayPause(const quint64 offset_nanosec = 0, const Playlist::AutoScroll autoscroll = Playlist::AutoScroll::Never);
|
||||
void RightClicked(const QPoint global_pos, const QModelIndex idx);
|
||||
|
||||
@@ -48,7 +48,7 @@ class SongLoaderInserter : public QObject {
|
||||
void Load(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next, const QList<QUrl> &urls);
|
||||
void LoadAudioCD(Playlist *destination, int row, bool play_now, bool enqueue, bool enqueue_next);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Error(const QString &message);
|
||||
void PreloadFinished();
|
||||
void EffectiveLoadFinished(const SongList &songs);
|
||||
|
||||
Reference in New Issue
Block a user