6#include <QtGui/qpainter.h>
7#include <QtGui/private/qmath_p.h>
8#include <QtQuick/private/qquickpalette_p.h>
9#include <QtQuick/private/qquickitem_p.h>
43 const qreal penSize =
r/20.0;
52 int(
r * 2 - 2 * d_ - 2),
53 int(
r * 2 - 2 * d_ - 2));
55 buttonColor.
setHsv(buttonColor .hue(),
56 qMin(140, buttonColor .saturation()),
61 qreal shadowSize =
qMax(1.0, penSize/2.0);
62 QRectF shadowRect= br.adjusted(-2*shadowSize, -2*shadowSize,
63 2*shadowSize, 2*shadowSize);
65 shadowRect.center().y(), shadowRect.width()/2.0,
66 shadowRect.center().x(), shadowRect.center().y());
67 shadowGradient.setColorAt(
qreal(0.91),
QColor(0, 0, 0, 40));
77 br.width()*1.3, br.center().x(),
78 br.center().y() - br.height()/2);
108#include "moc_qquickfusiondial_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
QColor darker(int f=200) const noexcept
void setHsv(int h, int s, int v, int a=255)
Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha componen...
int value() const noexcept
Returns the value color component of this color.
QColor lighter(int f=150) const noexcept
void setColorAt(qreal pos, const QColor &color)
Creates a stop point at the given position with the given color.
The QPainter class performs low-level painting on widgets and other paint devices.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawEllipse(const QRectF &r)
Draws the ellipse defined by the given rectangle.
void setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
void translate(const QPointF &offset)
Translates the coordinate system by the given offset; i.e.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
QQuickFusionDial(QQuickItem *parent=nullptr)
void setHighlight(bool highlight)
void paint(QPainter *painter) override
This function, which is usually called by the QML Scene Graph, paints the contents of an item in loca...
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
qreal width
This property holds the width of this item.
qreal height
This property holds the height of this item.
void update()
Schedules a call to updatePaintNode() for this item.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
GLint GLsizei GLsizei height
GLenum GLenum GLsizei const GLuint GLboolean enabled