Commit d7aa69dd authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent cd1dc179
......@@ -36,7 +36,7 @@ class AssignValuesPlugin : public EditorPluginInterface
public:
AssignValuesPlugin(QObject* parent, const QList< QVariant >&);
virtual ~AssignValuesPlugin();
virtual void showDialog(GraphDocumentPtr document);
void showDialog(GraphDocumentPtr document) Q_DECL_OVERRIDE;
private:
const QScopedPointer<AssignValuesPluginPrivate> d;
......
......@@ -36,7 +36,7 @@ class GenerateGraphPlugin : public EditorPluginInterface
public:
GenerateGraphPlugin(QObject* parent, const QList< QVariant >&);
virtual ~GenerateGraphPlugin();
virtual void showDialog(GraphDocumentPtr document);
void showDialog(GraphDocumentPtr document) Q_DECL_OVERRIDE;
private:
const QScopedPointer<GenerateGraphPluginPrivate> d;
......
......@@ -36,7 +36,7 @@ class TransformEdgesPlugin : public EditorPluginInterface
public:
TransformEdgesPlugin(QObject* parent, const QList< QVariant >&);
virtual ~TransformEdgesPlugin();
virtual void showDialog(GraphDocumentPtr document);
void showDialog(GraphDocumentPtr document) Q_DECL_OVERRIDE;
private:
const QScopedPointer<TransformEdgesPluginPrivate> d;
......
......@@ -37,19 +37,19 @@ public:
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graphDocument to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
* \param file is url of a local file
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
private:
QString processNode(NodePtr node) const;
......
......@@ -37,19 +37,19 @@ public:
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graphDocument to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
* \param file is url of a local file
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
private:
QString processNode(NodePtr node) const;
......
......@@ -126,19 +126,19 @@ public:
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graphDocument to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
* \param file is url of a local file
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
private:
QString serialize(GraphDocumentPtr document);
......
......@@ -40,19 +40,19 @@ public:
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graphDocument to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
* \param file is url of a local file
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
private:
QString direction(EdgeType::Direction direction) const;
......
......@@ -52,19 +52,19 @@ public:
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graphDocument to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
* \param file is url of a local file
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
private:
enum ReadMode {
......
......@@ -38,23 +38,23 @@ public:
explicit TikzFileFormat(QObject* parent, const QList< QVariant >&);
~TikzFileFormat();
virtual FileFormatInterface::PluginType pluginCapability() const;
FileFormatInterface::PluginType pluginCapability() const Q_DECL_OVERRIDE;
/**
* File extensions that are common for this file type.
*/
virtual const QStringList extensions() const;
const QStringList extensions() const Q_DECL_OVERRIDE;
/**
* Writes given graph document to formerly specified file \see setFile().
* \param graph is graph document to be serialized
*/
virtual void writeFile(GraphDocumentPtr graph);
void writeFile(GraphDocumentPtr graph) Q_DECL_OVERRIDE;
/**
* Open given file and imports it into internal format.
*/
virtual void readFile();
void readFile() Q_DECL_OVERRIDE;
};
}
......
......@@ -48,9 +48,9 @@ public:
bool isHighlighted() const;
void setHighlighted(bool highlight);
/** reimplemented from QQuickPaintedItem **/
void paint(QPainter *painter);
void paint(QPainter *painter) Q_DECL_OVERRIDE;
/** reimplemented from QQuickItem **/
bool contains(const QPointF &point) const;
bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
Q_SIGNALS:
void nodeChanged();
......
......@@ -40,16 +40,16 @@ public:
explicit ScriptApiModel(QList<Object* > dataList, QObject *parent = 0);
~ScriptApiModel();
QVariant data(const QModelIndex &index, int role) const;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &index) const;
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QModelIndex index(int row, int column,
const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
private:
void setupModelData(QList<Object*> dataList, Item* parent);
......
......@@ -34,13 +34,13 @@ public:
explicit EdgeTypesDelegate(QAbstractItemView *parent);
virtual ~EdgeTypesDelegate();
/** reimplemented from QAbstractItemDelegate **/
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual QList<QWidget*> createItemWidgets(const QModelIndex &index) const;
QList<QWidget*> createItemWidgets(const QModelIndex &index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual void updateItemWidgets(const QList<QWidget*> widgets, const QStyleOptionViewItem& option, const QPersistentModelIndex& index) const;
void updateItemWidgets(const QList<QWidget*> widgets, const QStyleOptionViewItem& option, const QPersistentModelIndex& index) const Q_DECL_OVERRIDE;
private Q_SLOTS:
void onColorDialogOpened();
......
......@@ -84,7 +84,7 @@ protected:
* Reimplemented method KMainWindow::queryClose().
*/
virtual bool queryClose() Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event);
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private Q_SLOTS:
void showConfigurationDialog();
......
......@@ -33,13 +33,13 @@ public:
explicit NodeTypesDelegate(QAbstractItemView *parent);
virtual ~NodeTypesDelegate();
/** reimplemented from QAbstractItemDelegate **/
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual QList<QWidget*> createItemWidgets(const QModelIndex &index) const;
QList<QWidget*> createItemWidgets(const QModelIndex &index) const Q_DECL_OVERRIDE;
/** reimplemented fromKWidgetItemDelegate **/
virtual void updateItemWidgets(const QList<QWidget*> widgets, const QStyleOptionViewItem& option, const QPersistentModelIndex& index) const;
void updateItemWidgets(const QList<QWidget*> widgets, const QStyleOptionViewItem& option, const QPersistentModelIndex& index) const Q_DECL_OVERRIDE;
private Q_SLOTS:
void onColorDialogOpened();
......
......@@ -41,10 +41,10 @@ class SideToolButton: public QToolButton
public:
explicit SideToolButton(QWidget* parent = 0);
Qt::Orientation orientation() const;
virtual QSize sizeHint() const;
QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
virtual void paintEvent(QPaintEvent *event);
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
};
/**
......
Markdown is supported
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