Skip to content
Snippets Groups Projects
Commit eda6e855 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

QmlJSDebugger: Fixed availability of resources of static library

On some systems, apparently including Linux and Windows, it is necessary
to manually initialize resources when they are included in a static
library, with Q_INIT_RESOURCE.
parent f7ab6222
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
#include <QtGui/QApplication> #include <QtGui/QApplication>
#include <QtCore/QSettings> #include <QtCore/QSettings>
static inline void initEditorResource() { Q_INIT_RESOURCE(editor); }
namespace QmlJSDebugger { namespace QmlJSDebugger {
const char * const KEY_TOOLBOX_GEOMETRY = "toolBox/geometry"; const char * const KEY_TOOLBOX_GEOMETRY = "toolBox/geometry";
...@@ -83,6 +85,8 @@ QDeclarativeViewObserverPrivate::~QDeclarativeViewObserverPrivate() ...@@ -83,6 +85,8 @@ QDeclarativeViewObserverPrivate::~QDeclarativeViewObserverPrivate()
QDeclarativeViewObserver::QDeclarativeViewObserver(QDeclarativeView *view, QObject *parent) : QDeclarativeViewObserver::QDeclarativeViewObserver(QDeclarativeView *view, QObject *parent) :
QObject(parent), data(new QDeclarativeViewObserverPrivate(this)) QObject(parent), data(new QDeclarativeViewObserverPrivate(this))
{ {
initEditorResource();
data->view = view; data->view = view;
data->manipulatorLayer = new LiveLayerItem(view->scene()); data->manipulatorLayer = new LiveLayerItem(view->scene());
data->selectionTool = new LiveSelectionTool(this); data->selectionTool = new LiveSelectionTool(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment