10#include "constpropagatingrawpointer.h"
12#include "helperqttypes.h"
15#include <qnamespace.h>
18#include <qsharedpointer.h>
21#include <qstyleoption.h>
23#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
24#include <qtmetamacros.h>
26#include <qobjectdefs.h>
38class SwatchBookPrivate final :
public QObject
48 ~SwatchBookPrivate() noexcept override = default;
50 [[nodiscard]]
QSize colorPatchesSizeWithMargin() const;
51 [[nodiscard]]
int cornerRadius() const;
52 [[nodiscard]]
int horizontalPatchSpacing() const;
54 [[nodiscard]]
int normalPatchSpacing() const;
56 [[nodiscard]]
QSize patchSizeInner() const;
57 [[nodiscard]]
QSize patchSizeOuter() const;
59 void selectSwatch(QListSizeType newCurrentColomn, QListSizeType newCurrentRow);
60 void selectSwatchFromCurrentColor();
61 [[nodiscard]]
int verticalPatchSpacing() const;
62 [[nodiscard]]
int widePatchSpacing() const;
77 QListSizeType m_selectedColumn = -1;
83 QListSizeType m_selectedRow = -1;
98 const
Qt::Orientations m_wideSpacing;
101 Q_DISABLE_COPY(SwatchBookPrivate)
105 ConstPropagatingRawPointer<SwatchBook> q_pointer;
The namespace of this library.
Array2D< QColor > Swatches
Swatches organized in a grid.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:18 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.