// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists for the convenience // of Qt Designer. This header // file may change from version to version without notice, or even be removed. // // We mean it. // #ifndef QDESIGNER_QSETTINGS_H #define QDESIGNER_QSETTINGS_H #include "shared_global_p.h" #include #include QT_BEGIN_NAMESPACE // Implements QDesignerSettingsInterface by calls to QSettings class QDESIGNER_SHARED_EXPORT QDesignerQSettings : public QDesignerSettingsInterface { public: QDesignerQSettings(); void beginGroup(const QString &prefix) override; void endGroup() override; bool contains(const QString &key) const override; void setValue(const QString &key, const QVariant &value) override; QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const override; void remove(const QString &key) override; // The application name to be used for settings. Allows for including // the Qt version to prevent settings of different Qt versions from // interfering. static QString settingsApplicationName(); private: QSettings m_settings; }; QT_END_NAMESPACE #endif // QDESIGNER_QSETTINGS_H