Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
PALETTEEDITORBUTTON_H
6
#
define
PALETTEEDITORBUTTON_H
7
8
#
include
"propertyeditor_global.h"
9
10
#
include
<
QtGui
/
qpalette
.
h
>
11
#
include
<
QtWidgets
/
qtoolbutton
.
h
>
12
13
#
include
"abstractformeditor.h"
14
15
QT_BEGIN_NAMESPACE
16
17
namespace
qdesigner_internal
{
18
19
class
QT_PROPERTYEDITOR_EXPORT
PaletteEditorButton
:
public
QToolButton
20
{
21
Q_OBJECT
22
public
:
23
PaletteEditorButton
(
QDesignerFormEditorInterface
*
core
,
const
QPalette
&
palette
,
QWidget
*
parent
=
nullptr
);
24
~
PaletteEditorButton
()
override
;
25
26
void
setSuperPalette
(
const
QPalette &palette);
27
QPalette
palette
()
const
{
return
m_palette; }
28
29
signals
:
30
void
paletteChanged
(
const
QPalette
&
palette
);
31
32
public
slots
:
33
void
setPalette
(
const
QPalette
&
palette
);
34
35
private
slots
:
36
void
showPaletteEditor
();
37
38
private
:
39
QPalette m_palette;
40
QPalette m_superPalette;
41
QDesignerFormEditorInterface *m_core;
42
};
43
44
}
// namespace qdesigner_internal
45
46
QT_END_NAMESPACE
47
48
#
endif
// PALETTEEDITORBUTTON_H
DesignerAlignmentPropertyType
Definition
designerpropertymanager.cpp:67
DesignerFlagPropertyType
Definition
designerpropertymanager.cpp:62
qdesigner_internal::PaletteEditorButton
Definition
paletteeditorbutton.h:20
qdesigner_internal::PaletteEditorButton::setSuperPalette
void setSuperPalette(const QPalette &palette)
Definition
paletteeditorbutton.cpp:33
qdesigner_internal::PaletteEditorButton::~PaletteEditorButton
~PaletteEditorButton() override
qdesigner_internal::PaletteEditorButton::palette
QPalette palette() const
Definition
paletteeditorbutton.h:27
defaultResourceAttributeC
static constexpr auto defaultResourceAttributeC
Definition
designerpropertymanager.cpp:56
themeEnumAttributeC
static constexpr auto themeEnumAttributeC
Definition
designerpropertymanager.cpp:59
flagsAttributeC
static constexpr auto flagsAttributeC
Definition
designerpropertymanager.cpp:53
validationModesAttributeC
static constexpr auto validationModesAttributeC
Definition
designerpropertymanager.cpp:54
resettableAttributeC
static constexpr auto resettableAttributeC
Definition
designerpropertymanager.cpp:52
themeAttributeC
static constexpr auto themeAttributeC
Definition
designerpropertymanager.cpp:58
superPaletteAttributeC
static constexpr auto superPaletteAttributeC
Definition
designerpropertymanager.cpp:55
fontAttributeC
static constexpr auto fontAttributeC
Definition
designerpropertymanager.cpp:57
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
QT_PROPERTYEDITOR_EXPORT
#define QT_PROPERTYEDITOR_EXPORT
Definition
propertyeditor_global.h:19
qttools
src
designer
src
components
propertyeditor
paletteeditorbutton.h
Generated on
for Qt by
1.18.0