forked from qt-creator/qt-creator
QmlDesigner: Fix critical cmake issues for effect maker
Qtc12 issues related to how effect maker configured Task-number: QDS-11064 Change-Id: Ic7768ef41928a97e447e12c0a2c252f87fe82c68 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -9,13 +9,12 @@
|
||||
#include "effectmakerview.h"
|
||||
#include "propertyhandler.h"
|
||||
|
||||
//#include "qmldesigner/designercore/imagecache/midsizeimagecacheprovider.h"
|
||||
#include "qmldesignerconstants.h"
|
||||
#include "qmldesignerplugin.h"
|
||||
#include "qqmlcontext.h"
|
||||
#include "theme.h"
|
||||
|
||||
#include "qmldesigner/components/propertyeditor/assetimageprovider.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <studioquickwidget.h>
|
||||
@@ -140,9 +139,10 @@ void EffectMakerWidget::initView()
|
||||
m_quickWidget->rootContext()->setContextProperty("modelNodeBackend", &m_backendModelNode);
|
||||
m_quickWidget->rootContext()->setContextProperty("activeDragSuffix", "");
|
||||
|
||||
m_quickWidget->engine()->addImageProvider("qmldesigner_thumbnails",
|
||||
new QmlDesigner::AssetImageProvider(
|
||||
QmlDesigner::QmlDesignerPlugin::imageCache()));
|
||||
//TODO: Fix crash on macos
|
||||
// m_quickWidget->engine()->addImageProvider("qmldesigner_thumbnails",
|
||||
// new QmlDesigner::AssetImageProvider(
|
||||
// QmlDesigner::QmlDesignerPlugin::imageCache()));
|
||||
|
||||
// init the first load of the QML UI elements
|
||||
reloadQmlSource();
|
||||
|
||||
Reference in New Issue
Block a user