blob: ed67742645465104d0afd6212283eae8a5494dbf (
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
40
41
42
43
|
// Copyright (C) 2020 Alexis Jeandet.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/id.h>
#include <QWidget>
#include <optional>
QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
namespace Utils {
class FilePath;
class PathChooser;
}
namespace MesonProjectManager::Internal {
class ToolTreeItem;
class ToolItemSettings : public QWidget
{
Q_OBJECT
public:
explicit ToolItemSettings(QWidget *parent = nullptr);
void load(ToolTreeItem *item);
void store();
signals:
void applyChanges(Utils::Id itemId, const QString &name, const Utils::FilePath &exe);
private:
std::optional<Utils::Id> m_currentId{std::nullopt};
QLineEdit *m_mesonNameLineEdit;
Utils::PathChooser *m_mesonPathChooser;
};
} // MesonProjectManager::Internal
|