Use explicit c'tor in all Qt Widgets GUI related classes
This commit is contained in:
parent
97f6cfcf76
commit
131b4d1649
|
@ -9,7 +9,7 @@ namespace QtGui {
|
||||||
class DevButtonsItemDelegate : public QStyledItemDelegate {
|
class DevButtonsItemDelegate : public QStyledItemDelegate {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DevButtonsItemDelegate(QObject *parent);
|
explicit DevButtonsItemDelegate(QObject *parent);
|
||||||
|
|
||||||
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
using ModelType = Data::SyncthingDeviceModel;
|
using ModelType = Data::SyncthingDeviceModel;
|
||||||
using SortFilterModelType = Data::SyncthingSortFilterModel;
|
using SortFilterModelType = Data::SyncthingSortFilterModel;
|
||||||
|
|
||||||
DevView(QWidget *parent = nullptr);
|
explicit DevView(QWidget *parent = nullptr);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void pauseResumeDev(const Data::SyncthingDev &dev);
|
void pauseResumeDev(const Data::SyncthingDev &dev);
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace QtGui {
|
||||||
class DirButtonsItemDelegate : public QStyledItemDelegate {
|
class DirButtonsItemDelegate : public QStyledItemDelegate {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DirButtonsItemDelegate(QObject *parent);
|
explicit DirButtonsItemDelegate(QObject *parent);
|
||||||
|
|
||||||
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
using ModelType = Data::SyncthingDirectoryModel;
|
using ModelType = Data::SyncthingDirectoryModel;
|
||||||
using SortFilterModelType = Data::SyncthingSortFilterModel;
|
using SortFilterModelType = Data::SyncthingSortFilterModel;
|
||||||
|
|
||||||
DirView(QWidget *parent = nullptr);
|
explicit DirView(QWidget *parent = nullptr);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void openDir(const Data::SyncthingDir &dir);
|
void openDir(const Data::SyncthingDir &dir);
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace QtGui {
|
||||||
class DownloadItemDelegate : public QStyledItemDelegate {
|
class DownloadItemDelegate : public QStyledItemDelegate {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DownloadItemDelegate(QObject *parent);
|
explicit DownloadItemDelegate(QObject *parent);
|
||||||
|
|
||||||
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override;
|
||||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
using ModelType = Data::SyncthingDownloadModel;
|
using ModelType = Data::SyncthingDownloadModel;
|
||||||
using SortFilterModelType = void;
|
using SortFilterModelType = void;
|
||||||
|
|
||||||
DownloadView(QWidget *parent = nullptr);
|
explicit DownloadView(QWidget *parent = nullptr);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void openDir(const Data::SyncthingDir &dir);
|
void openDir(const Data::SyncthingDir &dir);
|
||||||
|
|
|
@ -28,7 +28,7 @@ class TrayIcon : public QSystemTrayIcon {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TrayIcon(const QString &connectionConfig = QString(), QObject *parent = nullptr);
|
explicit TrayIcon(const QString &connectionConfig = QString(), QObject *parent = nullptr);
|
||||||
TrayMenu &trayMenu();
|
TrayMenu &trayMenu();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
|
|
@ -51,7 +51,7 @@ class TrayWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TrayWidget(TrayMenu *parent = nullptr);
|
explicit TrayWidget(TrayMenu *parent = nullptr);
|
||||||
~TrayWidget() override;
|
~TrayWidget() override;
|
||||||
|
|
||||||
Data::SyncthingConnection &connection();
|
Data::SyncthingConnection &connection();
|
||||||
|
|
Loading…
Reference in New Issue