Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmltoolingsettings_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QQMLTOOLINGSETTINGS_P_H
5#define QQMLTOOLINGSETTINGS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qstring.h>
19#include <QtCore/qhash.h>
20#include <QtCore/qvariant.h>
21
23
25{
26public:
27 QQmlToolingSettings(const QString &toolName) : m_toolName(toolName) { }
28
29 void addOption(const QString &name, const QVariant defaultValue = QVariant());
30
31 bool writeDefaults() const;
32 bool search(const QString &path);
33
35 bool isSet(QString name) const;
36
37private:
38 QString m_toolName;
39 QString m_currentSettingsPath;
40 QHash<QString, QString> m_seenDirectories;
41 QVariantHash m_values;
42
43 bool read(const QString &settingsFilePath);
44};
45
47
48#endif // QQMLTOOLINGSETTINGS_P_H
bool search(const QString &path)
bool isSet(QString name) const
void addOption(const QString &name, const QVariant defaultValue=QVariant())
QQmlToolingSettings(const QString &toolName)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint name
GLsizei const GLchar *const * path