Add explicit

This commit is contained in:
Jonas Kvinge
2020-04-07 16:49:15 +02:00
parent 3efc496c41
commit 21b2193cd0
199 changed files with 337 additions and 342 deletions

View File

@@ -50,7 +50,7 @@ class InternetCollectionView : public AutoExpandingTreeView {
Q_OBJECT
public:
InternetCollectionView(QWidget *parent = nullptr);
explicit InternetCollectionView(QWidget *parent = nullptr);
~InternetCollectionView();
void Init(Application *app, CollectionBackend *backend, CollectionModel *model, const bool favorite = false);

View File

@@ -42,7 +42,7 @@ class InternetCollectionViewContainer : public QWidget {
Q_OBJECT
public:
InternetCollectionViewContainer(QWidget *parent = nullptr);
explicit InternetCollectionViewContainer(QWidget *parent = nullptr);
~InternetCollectionViewContainer();
QStackedWidget *stacked() const { return ui_->stacked; }

View File

@@ -50,7 +50,7 @@ class InternetSearch : public QObject {
Q_OBJECT
public:
InternetSearch(Application *app, Song::Source source, QObject *parent = nullptr);
explicit InternetSearch(Application *app, Song::Source source, QObject *parent = nullptr);
~InternetSearch();
enum SearchType {

View File

@@ -32,7 +32,7 @@ class InternetSearchView;
class InternetSearchItemDelegate : public CollectionItemDelegate {
public:
InternetSearchItemDelegate(InternetSearchView *view);
explicit InternetSearchItemDelegate(InternetSearchView *view);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;

View File

@@ -46,7 +46,7 @@ class InternetSearchModel : public QStandardItemModel {
Q_OBJECT
public:
InternetSearchModel(InternetSearch *engine, QObject *parent = nullptr);
explicit InternetSearchModel(InternetSearch *engine, QObject *parent = nullptr);
enum Role {
Role_Result = CollectionModel::LastRole,

View File

@@ -28,7 +28,7 @@ class QModelIndex;
class InternetSearchSortModel : public QSortFilterProxyModel {
public:
InternetSearchSortModel(QObject *parent = nullptr);
explicit InternetSearchSortModel(QObject *parent = nullptr);
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;

View File

@@ -60,7 +60,7 @@ class InternetSearchView : public QWidget {
Q_OBJECT
public:
InternetSearchView(QWidget *parent = nullptr);
explicit InternetSearchView(QWidget *parent = nullptr);
~InternetSearchView();
void Init(Application *app, InternetSearch *engine, const QString &settings_group, const SettingsDialog::Page settings_page, const bool artists = false, const bool albums = false, const bool songs = false);

View File

@@ -39,7 +39,7 @@ class InternetService : public QObject {
Q_OBJECT
public:
InternetService(Song::Source source, const QString &name, const QString &url_scheme, Application *app, QObject *parent = nullptr);
explicit InternetService(Song::Source source, const QString &name, const QString &url_scheme, Application *app, QObject *parent = nullptr);
virtual ~InternetService() {}
virtual void Exit() {}

View File

@@ -40,7 +40,7 @@ class InternetSongsView : public QWidget {
Q_OBJECT
public:
InternetSongsView(Application *app, InternetService *service, const QString &settings_group, const SettingsDialog::Page settings_page, QWidget *parent = nullptr);
explicit InternetSongsView(Application *app, InternetService *service, const QString &settings_group, const SettingsDialog::Page settings_page, QWidget *parent = nullptr);
~InternetSongsView();
void ReloadSettings();

View File

@@ -43,7 +43,7 @@ class InternetTabsView : public QWidget {
Q_OBJECT
public:
InternetTabsView(Application *app, InternetService *service, InternetSearch *engine, const QString &settings_group, const SettingsDialog::Page settings_page, QWidget *parent = nullptr);
explicit InternetTabsView(Application *app, InternetService *service, InternetSearch *engine, const QString &settings_group, const SettingsDialog::Page settings_page, QWidget *parent = nullptr);
~InternetTabsView();
void ReloadSettings();