Skip to content
Permalink
Browse files

Add some missing overrides

  • Loading branch information
nyalldawson committed Jul 25, 2017
1 parent 213064a commit 30a83e1569f90d4413a251628edaddf544161edb
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/core/layout/qgslayoutitem.h
  2. +2 −2 src/core/layout/qgslayoutitemregistry.h
@@ -85,7 +85,7 @@ class CORE_EXPORT QgsLayoutItem : public QgsLayoutObject, public QGraphicsRectIt
* Return correct graphics item type
* \see stringType()
*/
virtual int type() const = 0;
virtual int type() const override = 0;

/**
* Return the item type as a string.
@@ -271,9 +271,9 @@ class TestLayoutItem : public QgsLayoutItem
~TestLayoutItem() {}

//implement pure virtual methods
int type() const { return QgsLayoutItemRegistry::LayoutItem + 102; }
int type() const override { return QgsLayoutItemRegistry::LayoutItem + 102; }
QString stringType() const override { return QStringLiteral( "ItemTest" ); }
void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = nullptr );
void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = nullptr ) override;

private:
QColor mColor;

0 comments on commit 30a83e1

Please sign in to comment.
You can’t perform that action at this time.