aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/libsample/objecttype.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/libsample/objecttype.h')
-rw-r--r--sources/shiboken2/tests/libsample/objecttype.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/shiboken2/tests/libsample/objecttype.h b/sources/shiboken2/tests/libsample/objecttype.h
index 487472b0f..91fb45515 100644
--- a/sources/shiboken2/tests/libsample/objecttype.h
+++ b/sources/shiboken2/tests/libsample/objecttype.h
@@ -45,6 +45,12 @@ struct Event
SOME_EVENT,
ANY_EVENT
};
+
+ enum class EventTypeClass {
+ Value1,
+ Value2
+ };
+
Event(EventType eventType) : m_eventType(eventType) {}
EventType eventType() { return m_eventType; }
private:
@@ -167,8 +173,8 @@ class LIBSAMPLE_API ObjectTypeDerived: public ObjectType, public OtherBase {
public:
ObjectTypeDerived(): ObjectType(), OtherBase() {};
- virtual bool event(Event* event);
- virtual ~ObjectTypeDerived();
+ bool event(Event* event) override;
+ ~ObjectTypeDerived() override;
};
#endif // OBJECTTYPE_H