forked from qt-creator/qt-creator
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -92,8 +92,9 @@ public:
|
||||
|
||||
QPointer<QmlJSEditorDocument> m_currentDocument;
|
||||
|
||||
Utils::JsonSchemaManager m_jsonManager{{ICore::userResourcePath() + "/json/",
|
||||
ICore::resourcePath() + "/json/"}};
|
||||
Utils::JsonSchemaManager m_jsonManager{
|
||||
{ICore::userResourcePath().pathAppended("json/").toString(),
|
||||
ICore::resourcePath().pathAppended("json/").toString()}};
|
||||
QmlJSEditorFactory m_qmlJSEditorFactory;
|
||||
QmlJSOutlineWidgetFactory m_qmlJSOutlineWidgetFactory;
|
||||
QuickToolBar m_quickToolBar;
|
||||
|
||||
@@ -328,8 +328,8 @@ QmlOutlineModel::QmlOutlineModel(QmlJSEditorDocument *document) :
|
||||
m_editorDocument(document)
|
||||
{
|
||||
m_icons = Icons::instance();
|
||||
const QString resourcePath = Core::ICore::resourcePath();
|
||||
Icons::instance()->setIconFilesPath(resourcePath + QLatin1String("/qmlicons"));
|
||||
Icons::instance()->setIconFilesPath(
|
||||
Core::ICore::resourcePath().pathAppended("qmlicons").toString());
|
||||
|
||||
setItemPrototype(new QmlOutlineItem(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user