Add explicit
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user