Commit d25b9622 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use override

parent 961dc624
......@@ -37,7 +37,7 @@ class MILOU_EXPORT DragHelper : public QObject
public:
DragHelper(QObject *parent = 0);
~DragHelper();
~DragHelper() override;
int dragIconSize() const;
void setDragIconSize(int size);
......
......@@ -35,7 +35,7 @@ class MILOU_EXPORT MouseHelper : public QObject
public:
explicit MouseHelper(QObject* parent = nullptr);
~MouseHelper();
~MouseHelper() override;
Q_INVOKABLE QPointF globalMousePosition() const;
};
......
......@@ -40,7 +40,7 @@ class MILOU_EXPORT Preview : public QQuickItem
public:
Preview(QQuickItem* parent = 0);
virtual ~Preview();
~Preview() override;
QString mimetype() const;
void setMimetype(const QString& mime);
......
......@@ -36,7 +36,7 @@ class MILOU_EXPORT PreviewPlugin : public QObject
Q_OBJECT
public:
explicit PreviewPlugin(QObject* parent);
virtual ~PreviewPlugin();
~PreviewPlugin() override;
/**
* Return a list of mimetype which this plugin supports. These mimetypes
......
......@@ -31,10 +31,10 @@ class TextPlugin : public Milou::PreviewPlugin
public:
explicit TextPlugin(QObject* parent, const QVariantList&);
QStringList mimetypes() Q_DECL_OVERRIDE {
QStringList mimetypes() override {
return QStringList() << QLatin1String("text/");
}
void generatePreview() Q_DECL_OVERRIDE;
void generatePreview() override;
};
#endif // TEXTVIEW_H
......@@ -30,8 +30,8 @@ class QmlPlugins : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void initializeEngine(QQmlEngine *engine, const char *uri) Q_DECL_OVERRIDE;
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
void initializeEngine(QQmlEngine *engine, const char *uri) override;
void registerTypes(const char *uri) override;
};
#endif // _MILOU_QML_PLUGINS_H
......@@ -45,7 +45,7 @@ class MILOU_EXPORT SourcesModel : public QAbstractListModel
public:
explicit SourcesModel(QObject* parent = 0);
virtual ~SourcesModel();
~SourcesModel() override;
enum Roles {
TypeRole = Qt::UserRole + 1,
......@@ -57,9 +57,9 @@ public:
PreviewLabelRole
};
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
bool hasChildren(const QModelIndex&) const Q_DECL_OVERRIDE {
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
bool hasChildren(const QModelIndex&) const override {
return false;
}
......@@ -72,7 +72,7 @@ public:
QString queryString() const;
int queryLimit() const;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
QHash<int, QByteArray> roleNames() const override;
signals:
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment