summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-28 07:35:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-28 07:35:33 +0100
commitfe8cca928b40d696a7c586c7c320226390be4689 (patch)
treeb6948b6a482a1a5cf160186f6d378313cdc4edb8 /pose-widget
parent788152115776748e824ff175926b83979a3723a2 (diff)
pose-widget: fix resources in library
They must be initialized at top namespace
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/glwidget.cpp10
1 files changed, 8 insertions, 2 deletions
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);