Replace signals with Q_SIGNALS

This commit is contained in:
Jonas Kvinge
2024-08-11 23:23:12 +02:00
parent 9666feca37
commit 358da72ffe
136 changed files with 141 additions and 141 deletions

View File

@@ -48,7 +48,7 @@ class AutoExpandingTreeView : public QTreeView {
void UpAndFocus();
void DownAndFocus();
signals:
Q_SIGNALS:
void AddToPlaylistSignal(QMimeData *data);
void FocusOnFilterSignal(QKeyEvent *event);

View File

@@ -31,7 +31,7 @@ class ClickableLabel : public QLabel {
public:
explicit ClickableLabel(QWidget *parent = nullptr);
signals:
Q_SIGNALS:
void Clicked();
protected:

View File

@@ -84,7 +84,7 @@ class FancyTabWidget : public QTabWidget {
private:
void addMenuItem(QActionGroup *group, const QString &text, Mode mode);
signals:
Q_SIGNALS:
void ModeChanged(const Mode mode);
void CurrentTabChanged(const int idx);

View File

@@ -43,7 +43,7 @@ class FavoriteWidget : public QWidget {
QSize sizeHint() const override;
signals:
Q_SIGNALS:
void FavoriteStateChanged(const int, const bool);
protected:

View File

@@ -63,7 +63,7 @@ class FileView : public QWidget {
void showEvent(QShowEvent*) override;
void keyPressEvent(QKeyEvent *e) override;
signals:
Q_SIGNALS:
void PathChanged(const QString &path);
void AddToPlaylist(QMimeData *data);

View File

@@ -45,7 +45,7 @@ class FileViewList : public QListView {
void mousePressEvent(QMouseEvent *e) override;
signals:
Q_SIGNALS:
void AddToPlaylist(QMimeData *data);
void CopyToCollection(const QList<QUrl> &urls);
void MoveToCollection(const QList<QUrl> &urls);

View File

@@ -140,7 +140,7 @@ class LineEdit : public QLineEdit, public ExtendedEditor {
private slots:
void text_changed(const QString &text);
signals:
Q_SIGNALS:
void Reset();
};
@@ -167,7 +167,7 @@ class TextEdit : public QPlainTextEdit, public ExtendedEditor {
void paintEvent(QPaintEvent*) override;
void resizeEvent(QResizeEvent*) override;
signals:
Q_SIGNALS:
void Reset();
};
@@ -198,7 +198,7 @@ class SpinBox : public QSpinBox, public ExtendedEditor {
void paintEvent(QPaintEvent*) override;
void resizeEvent(QResizeEvent*) override;
signals:
Q_SIGNALS:
void Reset();
};
@@ -227,7 +227,7 @@ class CheckBox : public QCheckBox, public ExtendedEditor {
void paintEvent(QPaintEvent*) override;
void resizeEvent(QResizeEvent*) override;
signals:
Q_SIGNALS:
void Reset();
};

View File

@@ -66,7 +66,7 @@ class LoginStateWidget : public QWidget {
void SetExpires(const QDate expires);
signals:
Q_SIGNALS:
void LogoutClicked();
void LoginClicked();

View File

@@ -43,7 +43,7 @@ class MultiLoadingIndicator : public QWidget {
QSize sizeHint() const override;
signals:
Q_SIGNALS:
void TaskCountChange(const int tasks);
protected:

View File

@@ -65,7 +65,7 @@ class PlayingWidget : public QWidget {
QSize sizeHint() const override;
bool show_above_status_bar() const { return above_statusbar_action_->isChecked(); }
signals:
Q_SIGNALS:
void ShowAboveStatusBarChanged(const bool above);
public slots:

View File

@@ -32,7 +32,7 @@ class QSearchField : public QWidget {
void selectAll();
void setFocus();
signals:
Q_SIGNALS:
void textChanged(const QString &text);
void editingFinished();
void returnPressed();

View File

@@ -55,7 +55,7 @@ class RatingWidget : public QWidget {
float rating() const { return rating_; }
void set_rating(const float rating);
signals:
Q_SIGNALS:
void RatingChanged(const float rating);
protected:

View File

@@ -35,7 +35,7 @@ class RenameTabLineEdit : public QLineEdit {
public:
explicit RenameTabLineEdit(QWidget *parent = nullptr);
signals:
Q_SIGNALS:
void EditingCanceled();
protected:

View File

@@ -40,7 +40,7 @@ class SliderSlider : public QSlider {
virtual void SetValue(const uint new_value);
virtual void setValue(int new_value);
signals:
Q_SIGNALS:
// We emit this when the user has specifically changed the slider so connect to it if valueChanged() is too generic Qt also emits valueChanged(int)
void SliderReleased(const int);

View File

@@ -71,7 +71,7 @@ class StretchHeaderView : public QHeaderView {
void ToggleStretchEnabled();
void SetStretchEnabled(const bool enabled);
signals:
Q_SIGNALS:
// Emitted when the stretch mode is changed.
void StretchEnabledChanged(const bool enabled);

View File

@@ -62,7 +62,7 @@ class TrackSlider : public QWidget {
void SetCanSeek(const bool can_seek);
void Seek(const int gap);
signals:
Q_SIGNALS:
void ValueChanged(const int value);
void ValueChangedSeconds(const quint64 value);

View File

@@ -43,7 +43,7 @@ class TrackSliderSlider : public QSlider {
public:
explicit TrackSliderSlider(QWidget *parent = nullptr);
signals:
Q_SIGNALS:
void SeekForward();
void SeekBackward();
void Previous();