blob: 2aababdb75417f9500f35c4c4e60b46c9ae75251 (
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
|
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <qmljs/qmljs_global.h>
#include <memory>
QT_FORWARD_DECLARE_CLASS(QIcon)
QT_FORWARD_DECLARE_CLASS(QStringView)
namespace QmlJS::Icons {
namespace Internal {
class IconsStorage;
}
class QMLJS_EXPORT Provider
{
public:
static Provider &instance();
Provider(const Provider &) = delete;
Provider &operator=(const Provider &) = delete;
Provider(Provider &&) = delete;
Provider &operator=(Provider &&) = delete;
QIcon icon(QStringView typeName) const;
private:
Provider();
std::unique_ptr<const Internal::IconsStorage> m_stockPtr;
};
QIcon QMLJS_EXPORT objectDefinitionIcon();
QIcon QMLJS_EXPORT scriptBindingIcon();
QIcon QMLJS_EXPORT publicMemberIcon();
QIcon QMLJS_EXPORT functionDeclarationIcon();
QIcon QMLJS_EXPORT enumMemberIcon();
} // namespace QmlJS::Icons
|