aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/designer/settingspage.h
blob: 03206109dba3cb9394c1f906ab2d386b3126d63b (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <coreplugin/dialogs/ioptionspage.h>

QT_BEGIN_NAMESPACE
class QDesignerOptionsPageInterface;
QT_END_NAMESPACE

namespace Designer::Internal {

class SettingsPage : public Core::IOptionsPage
{
public:
    explicit SettingsPage(QDesignerOptionsPageInterface *designerPage);
};

class SettingsPageProvider : public Core::IOptionsPageProvider
{
public:
    SettingsPageProvider();

    QList<Core::IOptionsPage *> pages() const override;
    bool matches(const QRegularExpression &regex) const override;

private:
    mutable bool m_initialized = false;
    mutable QStringList m_keywords;
};

} // Designer::Internal