Include background.jpg as a resource. This way it will be found
always.
Change-Id: I859a01b97fc81b704f8c632aab546b4b9905c375
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
surfacerenderer.h \
qwindowcompositor.h
-
-
-
-
-
+RESOURCES += qwindow-compositor.qrc
--- /dev/null
+<RCC>
+ <qresource prefix="/">
+ <file alias="background.jpg">../qml-compositor/background.jpg</file>
+ </qresource>
+</RCC>
: WaylandCompositor(window, window->context())
, m_window(window)
{
- m_backgroundImage = QImage(QLatin1String("background.jpg"));
+ m_backgroundImage = QImage(QLatin1String(":/background.jpg"));
m_renderer = new SurfaceRenderer(m_window->context(), m_window);
m_backgroundTexture = m_renderer->textureFromImage(m_backgroundImage);