Replace slots with Q_SLOTS
This commit is contained in:
@@ -38,7 +38,7 @@ class MoodbarController : public QObject {
|
||||
Q_SIGNALS:
|
||||
void CurrentMoodbarDataChanged(const QByteArray &data);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void CurrentSongChanged(const Song &song);
|
||||
void PlaybackStopped();
|
||||
void AsyncLoadComplete(MoodbarPipeline *pipeline, const QUrl &url);
|
||||
|
||||
@@ -47,7 +47,7 @@ class MoodbarItemDelegate : public QItemDelegate {
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
|
||||
void DataLoaded(const QUrl &url, MoodbarPipeline *pipeline);
|
||||
|
||||
@@ -54,7 +54,7 @@ class MoodbarLoader : public QObject {
|
||||
|
||||
Result Load(const QUrl &url, const bool has_cue, QByteArray *data, MoodbarPipeline **async_pipeline);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
|
||||
void RequestFinished(MoodbarPipeline *request, const QUrl &url);
|
||||
|
||||
@@ -43,7 +43,7 @@ class MoodbarPipeline : public QObject {
|
||||
bool success() const { return success_; }
|
||||
const QByteArray &data() const { return data_; }
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void Start();
|
||||
|
||||
Q_SIGNALS:
|
||||
|
||||
@@ -57,7 +57,7 @@ class MoodbarProxyStyle : public QProxyStyle {
|
||||
// QObject
|
||||
bool eventFilter(QObject *object, QEvent *event) override;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
// An empty byte array means there's no moodbar, so just show a normal slider.
|
||||
void SetMoodbarData(const QByteArray &data);
|
||||
|
||||
@@ -82,7 +82,7 @@ class MoodbarProxyStyle : public QProxyStyle {
|
||||
|
||||
static QPixmap MoodbarPixmap(const ColorVector &colors, const QSize size, const QPalette &palette, const QStyleOptionSlider *opt);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ReloadSettings();
|
||||
void FaderValueChanged(qreal value);
|
||||
void ChangeStyle(QAction *action);
|
||||
|
||||
Reference in New Issue
Block a user