2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2022-05-25 15:24:09 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/extracompiler.h>
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
namespace Python::Internal {
|
2022-05-25 15:24:09 +02:00
|
|
|
|
|
|
|
|
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(
|
2023-05-03 16:00:22 +02:00
|
|
|
Utils::Process *process) override;
|
2022-05-25 15:24:09 +02:00
|
|
|
|
|
|
|
|
Utils::FilePath m_pySideUic;
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|