forked from qt-creator/qt-creator
QmlEditorWidgets: Use a prefix in easingpane.qrc
Since all resources in Qt Creator get merged together at runtime, they should be prefixed with the library/plugin name. Change-Id: Iacd2aa748e68ac9f8c61b77a4af1db9d03f3f9d2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -49,7 +49,7 @@ class EasingSimulation : public QObject
|
|||||||
public:
|
public:
|
||||||
QGraphicsView *m_g;
|
QGraphicsView *m_g;
|
||||||
EasingSimulation(QObject *parent=0, QGraphicsView *v=0):QObject(parent) {
|
EasingSimulation(QObject *parent=0, QGraphicsView *v=0):QObject(parent) {
|
||||||
m_qtLogo = new PixmapItem(QPixmap(QLatin1String(":/qt_logo.png")));
|
m_qtLogo = new PixmapItem(QPixmap(":/qmleditorwidgets/qt_logo.png"));
|
||||||
m_scene.addItem(m_qtLogo);
|
m_scene.addItem(m_qtLogo);
|
||||||
m_scene.setSceneRect(0,0,v->viewport()->width(),m_qtLogo->boundingRect().height());
|
m_scene.setSceneRect(0,0,v->viewport()->width(),m_qtLogo->boundingRect().height());
|
||||||
m_qtLogo->hide();
|
m_qtLogo->hide();
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/qmleditorwidgets">
|
||||||
<file>qt_logo.png</file>
|
<file>qt_logo.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Reference in New Issue
Block a user