diff --git a/animations/stackedlayout.cpp b/animations/stackedlayout.cpp index 2641de211..29ec0b637 100644 --- a/animations/stackedlayout.cpp +++ b/animations/stackedlayout.cpp @@ -21,7 +21,9 @@ #include StackedLayout::StackedLayout(QGraphicsLayoutItem *parent) - : QObject(0), m_currentWidgetIndex(-1), QGraphicsLayout(parent) + : QObject(0), + QGraphicsLayout(parent), + m_currentWidgetIndex(-1) { } diff --git a/animations/stackedlayout.h b/animations/stackedlayout.h index 9a0d534f8..77de9ccbc 100644 --- a/animations/stackedlayout.h +++ b/animations/stackedlayout.h @@ -24,8 +24,10 @@ class StackedLayout : public QObject, public QGraphicsLayout { -Q_OBJECT - public: + Q_OBJECT + Q_INTERFACES(QGraphicsLayout) + +public: explicit StackedLayout(QGraphicsLayoutItem *parent = 0); ~StackedLayout();