| | |
| | | /****************************************************************************
|
| | | **
|
| | | ** Copyright (C) 2018 The Qt Company Ltd.
|
| | | ** Copyright (C) 2022 The Qt Company Ltd.
|
| | | ** Contact: https://www.qt.io/licensing/
|
| | | **
|
| | | ** This file is part of the Qt VS Tools.
|
| | |
| | |
|
| | | namespace QtVsTools.Qml.Debug
|
| | | {
|
| | | using QtVsTools.Core;
|
| | |
|
| | | struct QmlFile
|
| | | {
|
| | | public string QrcPath;
|
| | |
| | | using (var reader = XmlReader.Create(new StringReader(xmlText), settings)) {
|
| | | rccXml = XDocument.Load(reader);
|
| | | }
|
| | | } catch (Exception e) {
|
| | | System.Diagnostics.Debug.WriteLine(
|
| | | e.Message + "\r\n\r\nStacktrace:\r\n" + e.StackTrace);
|
| | | } catch (Exception exception) {
|
| | | exception.Log();
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | qrcPath = string.Format("qrc:///{0}", qrcPath);
|
| | |
|
| | | QmlFile file;
|
| | | if (!files.TryGetValue(qrcPath, out file))
|
| | | if (!files.TryGetValue(qrcPath, out QmlFile file))
|
| | | return default(QmlFile);
|
| | |
|
| | | return file;
|
| | |
| | | return default(QmlFile);
|
| | | }
|
| | |
|
| | | QmlFile file;
|
| | | if (files.TryGetValue(fullPath, out file))
|
| | | if (files.TryGetValue(fullPath, out QmlFile file))
|
| | | return file;
|
| | |
|
| | | return new QmlFile
|