Skip to content

Commit

Permalink
Make sure classes do not miss their key function
Browse files Browse the repository at this point in the history
m-kuhn committed Sep 4, 2017
1 parent 916dbce commit 1db62ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/layout/qgslayoutitemregistry.h
Original file line number Diff line number Diff line change
@@ -263,7 +263,13 @@ class CORE_EXPORT QgsLayoutItemRegistry : public QObject
#ifndef SIP_RUN
///@cond TEMPORARY
//simple item for testing
#ifdef ANDROID
// For some reason, the Android NDK toolchain requires this to link properly.
// Note to self: Please try to remove this again once Qt ships their libs built with gcc-5
class CORE_EXPORT TestLayoutItem : public QgsLayoutItem
#else
class TestLayoutItem : public QgsLayoutItem
#endif
{
Q_OBJECT

@@ -274,15 +280,13 @@ class TestLayoutItem : public QgsLayoutItem

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

private:
QColor mColor;
QgsFillSymbol *mShapeStyleSymbol = nullptr;
};


///@endcond
#endif

0 comments on commit 1db62ac

Please sign in to comment.