Use override
This commit is contained in:
@@ -32,13 +32,13 @@ class AddStreamDialog : public QDialog {
|
||||
|
||||
public:
|
||||
AddStreamDialog(QWidget *parent = nullptr);
|
||||
~AddStreamDialog();
|
||||
~AddStreamDialog() override;
|
||||
|
||||
QUrl url() const { return QUrl(ui_->url->text()); }
|
||||
void set_url(const QUrl &url) { ui_->url->setText(url.toString());}
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent*);
|
||||
void showEvent(QShowEvent*) override;
|
||||
|
||||
private slots:
|
||||
void TextChanged(const QString &text);
|
||||
|
||||
@@ -62,7 +62,7 @@ class EditTagDialog : public QDialog {
|
||||
|
||||
public:
|
||||
explicit EditTagDialog(Application *app, QWidget *parent = nullptr);
|
||||
~EditTagDialog();
|
||||
~EditTagDialog() override;
|
||||
|
||||
static const char *kHintText;
|
||||
static const char *kSettingsGroup;
|
||||
@@ -71,15 +71,15 @@ class EditTagDialog : public QDialog {
|
||||
|
||||
PlaylistItemList playlist_items() const { return playlist_items_; }
|
||||
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
signals:
|
||||
void Error(const QString &message);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *o, QEvent *e);
|
||||
void showEvent(QShowEvent*);
|
||||
void hideEvent(QHideEvent*);
|
||||
bool eventFilter(QObject *o, QEvent *e) override;
|
||||
void showEvent(QShowEvent*) override;
|
||||
void hideEvent(QHideEvent*) override;
|
||||
|
||||
private:
|
||||
struct Data {
|
||||
|
||||
@@ -37,15 +37,15 @@ class ErrorDialog : public QDialog {
|
||||
|
||||
public:
|
||||
explicit ErrorDialog(QWidget *parent = nullptr);
|
||||
~ErrorDialog();
|
||||
~ErrorDialog() override;
|
||||
|
||||
public slots:
|
||||
public slots:
|
||||
void ShowMessage(const QString &message);
|
||||
|
||||
protected:
|
||||
void hideEvent(QHideEvent *);
|
||||
protected:
|
||||
void hideEvent(QHideEvent*) override;
|
||||
|
||||
private:
|
||||
private:
|
||||
void UpdateContent();
|
||||
|
||||
Ui_ErrorDialog *ui_;
|
||||
|
||||
@@ -39,7 +39,7 @@ class TrackSelectionDialog : public QDialog {
|
||||
|
||||
public:
|
||||
explicit TrackSelectionDialog(QWidget *parent = nullptr);
|
||||
~TrackSelectionDialog();
|
||||
~TrackSelectionDialog() override;
|
||||
|
||||
void set_save_on_close(bool save_on_close) { save_on_close_ = save_on_close; }
|
||||
|
||||
@@ -50,7 +50,7 @@ class TrackSelectionDialog : public QDialog {
|
||||
void FetchTagFinished(const Song &original_song, const SongList &songs_guessed);
|
||||
|
||||
// QDialog
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
signals:
|
||||
void Error(const QString&);
|
||||
|
||||
Reference in New Issue
Block a user