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 inline QPalette palette() const
27 { return m_palette; }
28
31
32public slots:
33 void setPalette(const QPalette &palette);
34
35private slots:
36 void showPaletteEditor();
37
38private:
39 QPalette m_palette;
40 QPalette m_superPalette;
41 QDesignerFormEditorInterface *m_core;
42};
43
44} // namespace qdesigner_internal
45
46QT_END_NAMESPACE
47
48#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