7#include <QtGui/qtguiglobal.h>
8#include <QtGui/qwindowdefs.h>
9#include <QtGui/qcolor.h>
10#include <QtGui/qbrush.h>
35 :
d(std::exchange(
other.d,
nullptr)), currentGroup(
other.currentGroup)
37 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QPalette)
41 std::swap(currentGroup,
other.currentGroup);
59 NColorRoles = AccentColor + 1,
63 inline
ColorGroup currentColorGroup()
const {
return currentGroup; }
67 {
return brush(cg, cr).color(); }
68 const QBrush &
brush(ColorGroup cg, ColorRole cr)
const;
71 inline void setBrush(ColorRole cr,
const QBrush &
brush);
72 bool isBrushSet(ColorGroup cg, ColorRole cr)
const;
73 void setBrush(ColorGroup cg, ColorRole cr,
const QBrush &
brush);
78 bool isEqual(ColorGroup cr1, ColorGroup cr2)
const;
123 const QBrush &highlight,
const QBrush &highlighted_text,
131 const QBrush &highlight,
const QBrush &highlighted_text,
147{ setBrush(acg, acr,
QBrush(acolor)); }
156#ifndef QT_NO_DATASTREAM
161#ifndef QT_NO_DEBUG_STREAM
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
The QPalette class contains color groups for each widget state.
const QBrush & highlight() const
Returns the highlight brush of the current color group.
const QBrush & button() const
Returns the button brush of the current color group.
const QBrush & text() const
Returns the text foreground brush of the current color group.
const QBrush & toolTipBase() const
const QBrush & windowText() const
Returns the window text (general foreground) brush of the current color group.
QPalette(QPalette &&other) noexcept
const QBrush & dark() const
Returns the dark brush of the current color group.
bool operator!=(const QPalette &p) const
Returns true (slowly) if this palette is different from p; otherwise returns false (usually quickly).
const QBrush & toolTipText() const
const QBrush & link() const
Returns the unvisited link text brush of the current color group.
const QBrush & shadow() const
Returns the shadow brush of the current color group.
const QBrush & brightText() const
Returns the bright text foreground brush of the current color group.
const QBrush & brush(ColorRole cr) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
const QBrush & light() const
Returns the light brush of the current color group.
void setCurrentColorGroup(ColorGroup cg)
Set the palette's current color group to cg.
const QColor & color(ColorGroup cg, ColorRole cr) const
Returns the color in the specified color group, used for the given color role.
const QBrush & linkVisited() const
Returns the visited link text brush of the current color group.
const QBrush & mid() const
Returns the mid brush of the current color group.
void setBrush(ColorRole cr, const QBrush &brush)
Sets the brush for the given color role to the specified brush for all groups in the palette.
const QBrush & alternateBase() const
Returns the alternate base brush of the current color group.
const QColor & color(ColorRole cr) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
const QBrush & midlight() const
Returns the midlight brush of the current color group.
ColorGroup
\value Disabled \value Active \value Inactive \value Normal synonym for Active
void setColor(ColorGroup cg, ColorRole cr, const QColor &color)
Sets the color in the specified color group, used for the given color role, to the specified solid co...
const QBrush & placeholderText() const
const QBrush & window() const
Returns the window (general background) brush of the current color group.
const QBrush & base() const
Returns the base brush of the current color group.
const QBrush & buttonText() const
Returns the button text foreground brush of the current color group.
const QBrush & accentColor() const
const QBrush & highlightedText() const
Returns the highlighted text brush of the current color group.
[Window class with invokable method]
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &ds, QPalette &p)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &ds, const QPalette &p)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
constexpr void qt_ptr_swap(T *&lhs, T *&rhs) noexcept
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
unsigned long long quint64
myFilter setColor(QColor(128, 0, 0))