Replace signals with Q_SIGNALS
This commit is contained in:
@@ -48,7 +48,7 @@ class AutoExpandingTreeView : public QTreeView {
|
||||
void UpAndFocus();
|
||||
void DownAndFocus();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void AddToPlaylistSignal(QMimeData *data);
|
||||
void FocusOnFilterSignal(QKeyEvent *event);
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class ClickableLabel : public QLabel {
|
||||
public:
|
||||
explicit ClickableLabel(QWidget *parent = nullptr);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void Clicked();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class FavoriteWidget : public QWidget {
|
||||
|
||||
QSize sizeHint() const override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void FavoriteStateChanged(const int, const bool);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class LoginStateWidget : public QWidget {
|
||||
|
||||
void SetExpires(const QDate expires);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void LogoutClicked();
|
||||
void LoginClicked();
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class MultiLoadingIndicator : public QWidget {
|
||||
|
||||
QSize sizeHint() const override;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void TaskCountChange(const int tasks);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -32,7 +32,7 @@ class QSearchField : public QWidget {
|
||||
void selectAll();
|
||||
void setFocus();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void textChanged(const QString &text);
|
||||
void editingFinished();
|
||||
void returnPressed();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -35,7 +35,7 @@ class RenameTabLineEdit : public QLineEdit {
|
||||
public:
|
||||
explicit RenameTabLineEdit(QWidget *parent = nullptr);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void EditingCanceled();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class TrackSliderSlider : public QSlider {
|
||||
public:
|
||||
explicit TrackSliderSlider(QWidget *parent = nullptr);
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void SeekForward();
|
||||
void SeekBackward();
|
||||
void Previous();
|
||||
|
||||
Reference in New Issue
Block a user