From fe8cca928b40d696a7c586c7c320226390be4689 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 28 Dec 2016 07:35:33 +0100 Subject: pose-widget: fix resources in library They must be initialized at top namespace --- pose-widget/glwidget.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pose-widget') diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp index 023e1926..0547aee5 100644 --- a/pose-widget/glwidget.cpp +++ b/pose-widget/glwidget.cpp @@ -17,10 +17,16 @@ using namespace euler; using namespace pose_widget_impl; -GLWidget::GLWidget(QWidget *parent) : QWidget(parent) +static struct POSE_WIDGET_EXPORT qrc_initializer { - Q_INIT_RESOURCE(posewidget); + qrc_initializer() + { + Q_INIT_RESOURCE(posewidget); + } +} initializer; +GLWidget::GLWidget(QWidget *parent) : QWidget(parent) +{ front = QImage(QString(":/images/side1.png")); back = QImage(QString(":/images/side6.png")); rotateBy(0, 0, 0, 0, 0, 0); -- cgit v1.2.3