aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pysideuicextracompiler.h
blob: 058717621edea5e3e926d1a3d6cbb2b09d100609 (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <projectexplorer/extracompiler.h>

namespace Python::Internal {

class PySideUicExtraCompiler : public ProjectExplorer::ProcessExtraCompiler
{
public:
    PySideUicExtraCompiler(const Utils::FilePath &pySideUic,
                           const ProjectExplorer::Project *project,
                           const Utils::FilePath &source,
                           const Utils::FilePaths &targets,
                           QObject *parent = nullptr);

    Utils::FilePath pySideUicPath() const;

private:
    Utils::FilePath command() const override;
    ProjectExplorer::FileNameToContentsHash handleProcessFinished(
        Utils::Process *process) override;

    Utils::FilePath m_pySideUic;
};

} // Python::Internal