Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
paletteeditorbutton.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 PALETTEEDITORBUTTON_H
5#define PALETTEEDITORBUTTON_H
6
8
9#include <QtGui/qpalette.h>
10#include <QtWidgets/qtoolbutton.h>
11
13
15
16namespace qdesigner_internal {
17
19{
21public:
24
25 void setSuperPalette(const QPalette &palette);
26 QPalette palette() const { return m_palette; }
27
30
31public slots:
32 void setPalette(const QPalette &palette);
33
34private slots:
35 void showPaletteEditor();
36
37private:
38 QPalette m_palette;
39 QPalette m_superPalette;
40 QDesignerFormEditorInterface *m_core;
41};
42
43} // namespace qdesigner_internal
44
45QT_END_NAMESPACE
46
47#endif // PALETTEEDITORBUTTON_H
void setSuperPalette(const QPalette &palette)
static constexpr auto defaultResourceAttributeC
static constexpr auto themeEnumAttributeC
static constexpr auto flagsAttributeC
static constexpr auto validationModesAttributeC
static constexpr auto resettableAttributeC
static constexpr auto themeAttributeC
static constexpr auto superPaletteAttributeC
static constexpr auto fontAttributeC
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QT_PROPERTYEDITOR_EXPORT