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);
63 2*shadowSize, 2*shadowSize);
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
QColor toHsv() const noexcept
Creates and returns an HSV QColor based on this color.
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.
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
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.
virtual QQuickPalette * palette() const
\inmodule QtCore\reentrant
constexpr qreal width() const noexcept
Returns the width of the rectangle.
constexpr QRectF adjusted(qreal x1, qreal y1, qreal x2, qreal y2) const noexcept
Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of ...
constexpr QPointF center() const noexcept
Returns the center point of the rectangle.
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
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent