Add override

This commit is contained in:
Laurent Montel 2019-01-03 21:42:30 +01:00
parent f1ec1433c8
commit 03fbd3318b
5 changed files with 8 additions and 8 deletions

View File

@ -91,7 +91,7 @@ class SortFilterModel : public QSortFilterProxyModel
public:
explicit SortFilterModel(QObject *parent = nullptr);
~SortFilterModel();
~SortFilterModel() override;
void setModel(QAbstractItemModel *source);

View File

@ -69,7 +69,7 @@ public:
/// @cond INTERNAL_DOCS
explicit SvgItem(QQuickItem *parent = nullptr);
~SvgItem();
~SvgItem() override;
void setElementId(const QString &elementID);
QString elementId() const;

View File

@ -82,8 +82,8 @@ class WindowThumbnail : public QQuickItem, public QAbstractNativeEventFilter
Q_PROPERTY(bool thumbnailAvailable READ thumbnailAvailable NOTIFY thumbnailAvailableChanged)
public:
WindowThumbnail(QQuickItem *parent = nullptr);
virtual ~WindowThumbnail();
explicit WindowThumbnail(QQuickItem *parent = nullptr);
~WindowThumbnail() override;
bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result) override;
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) override;

View File

@ -33,8 +33,8 @@ class FullScreenSheet : public FullScreenWindow
Q_PROPERTY(QString rejectButtonText READ rejectButtonText WRITE setRejectButtonText NOTIFY rejectButtonTextChanged)
public:
FullScreenSheet(QDeclarativeItem *parent = nullptr);
~FullScreenSheet();
explicit FullScreenSheet(QDeclarativeItem *parent = nullptr);
~FullScreenSheet() override;
QString title() const;
void setTitle(const QString &text);

View File

@ -44,8 +44,8 @@ class FullScreenWindow : public QDeclarativeItem
Q_PROPERTY(DialogStatus::Status status READ status NOTIFY statusChanged)
public:
FullScreenWindow(QDeclarativeItem *parent = nullptr);
~FullScreenWindow();
explcit FullScreenWindow(QDeclarativeItem *parent = nullptr);
~FullScreenWindow() override;
QGraphicsObject *mainItem() const;
void setMainItem(QGraphicsObject *mainItem);