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

@@ -35,22 +35,22 @@ class QModelIndex;
class DeviceStateFilterModel : public QSortFilterProxyModel {
Q_OBJECT
public:
DeviceStateFilterModel(QObject *parent, DeviceManager::State state = DeviceManager::State_Remembered);
public:
explicit DeviceStateFilterModel(QObject *parent, DeviceManager::State state = DeviceManager::State_Remembered);
void setSourceModel(QAbstractItemModel *sourceModel);
signals:
signals:
void IsEmptyChanged(bool is_empty);
protected:
protected:
bool filterAcceptsRow(int row, const QModelIndex &parent) const;
private slots:
private slots:
void ProxyRowCountChanged();
void ProxyRowCountChanged(QModelIndex index, int first, int last);
private:
private:
DeviceManager::State state_;
};