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
qquickabstractpaletteprovider_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QQUICKABSTRACTPALETTEPROVIDER_P_H
4#define QQUICKABSTRACTPALETTEPROVIDER_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtQuick/private/qtquickglobal_p.h>
18
20
22{
23public:
24 virtual ~QQuickAbstractPaletteProvider() = default;
25 virtual QPalette defaultPalette() const = 0;
26 virtual QPalette parentPalette(const QPalette &fallbackPalette) const { return fallbackPalette; }
27};
28
30
31#endif // QQUICKABSTRACTPALETTEPROVIDER_P_H
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
virtual QPalette defaultPalette() const =0
virtual ~QQuickAbstractPaletteProvider()=default
virtual QPalette parentPalette(const QPalette &fallbackPalette) const
Combined button and popup list for selecting options.