blob: f2079b9338378122740951d6b686e255953e895e (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <projectexplorer/extracompiler.h>
#include <utils/fileutils.h>
namespace QtSupport {
class UicGenerator : public ProjectExplorer::ProcessExtraCompiler
{
Q_OBJECT
public:
UicGenerator(const ProjectExplorer::Project *project, const Utils::FilePath &source,
const Utils::FilePaths &targets, QObject *parent = nullptr);
protected:
Utils::FilePath command() const override;
QStringList arguments() const override;
ProjectExplorer::FileNameToContentsHash handleProcessFinished(Utils::QtcProcess *process) override;
};
class UicGeneratorFactory : public ProjectExplorer::ExtraCompilerFactory
{
Q_OBJECT
public:
UicGeneratorFactory() = default;
ProjectExplorer::FileType sourceType() const override;
QString sourceTag() const override;
ProjectExplorer::ExtraCompiler *create(const ProjectExplorer::Project *project,
const Utils::FilePath &source,
const Utils::FilePaths &targets) override;
};
} // QtSupport
|