blob: 2546be1b8f45bea8e0d567b21f92f6daded61c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QUrl>
#include <QString>
#include <QPointer>
namespace ProjectExplorer { class BuildConfiguration; }
namespace QmlPreview {
class QmlPreviewFileOnTargetFinder
{
public:
void setBuildConfiguration(ProjectExplorer::BuildConfiguration *bc);
QString findPath(const QString &filePath, bool *success = nullptr) const;
QUrl findUrl(const QString &filePath, bool *success = nullptr) const;
private:
QPointer<ProjectExplorer::BuildConfiguration> m_buildConfig;
};
} // namespace QmlPreview
|