Kstars
QRoundProgressBar.cpp
25 : QWidget(parent), m_min(0), m_max(100), m_value(25), m_nullPosition(PositionTop), m_barStyle(StyleDonut),
245 p.drawEllipse(baseRect.adjusted(m_outlinePenWidth / 2, m_outlinePenWidth / 2, -m_outlinePenWidth / 2,
253void QRoundProgressBar::drawValue(QPainter &p, const QRectF &baseRect, double value, double arcLength)
264 p.drawArc(baseRect.adjusted(m_outlinePenWidth / 2, m_outlinePenWidth / 2, -m_outlinePenWidth / 2,
284void QRoundProgressBar::calculateInnerRect(const QRectF & /*baseRect*/, double outerRadius, QRectF &innerRect,
310void QRoundProgressBar::drawText(QPainter &p, const QRectF &innerRect, double innerRadius, double value)
void setDataPenWidth(double penWidth)
Sets width of the data circle pen.
Definition QRoundProgressBar.cpp:113
void setValue(double val)
Sets a value which will be shown on the widget.
Definition QRoundProgressBar.cpp:60
void setMinimum(double min)
Defines minimum of the allowed value range.
Definition QRoundProgressBar.cpp:50
void setOutlinePenWidth(double penWidth)
Sets width of the outline circle pen.
Definition QRoundProgressBar.cpp:103
void setDecimals(int count)
Sets number of decimals to show after the comma (default is 1).
Definition QRoundProgressBar.cpp:150
void setMaximum(double max)
Defines maximum of the allowed value range.
Definition QRoundProgressBar.cpp:55
void setFormat(const QString &format)
Defines the string used to generate the current text.
Definition QRoundProgressBar.cpp:134
void setNullPosition(double position)
Defines position of minimum value.
Definition QRoundProgressBar.cpp:80
QString format() const
Returns the string used to generate the current text.
Definition QRoundProgressBar.h:153
void setRange(double min, double max)
Defines minimum und maximum of the allowed value range.
Definition QRoundProgressBar.cpp:31
BarStyle
The BarStyle enum defines general look of the progress bar.
Definition QRoundProgressBar.h:87
void setDataColors(const QGradientStops &stopPoints)
Sets colors of the visible data and makes gradient brush from them.
Definition QRoundProgressBar.cpp:123
void setAngle(qreal angle)
void setCenter(const QPointF ¢er)
StretchToDeviceMode
void setColorAt(qreal position, const QColor &color)
void setCoordinateMode(CoordinateMode mode)
Format_ARGB32_Premultiplied
Antialiasing
void drawArc(const QRect &rectangle, int startAngle, int spanAngle)
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawPath(const QPainterPath &path)
void drawText(const QPoint &position, const QString &text)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
void setBrush(Qt::BrushStyle style)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void arcTo(const QRectF &rectangle, qreal startAngle, qreal sweepLength)
void lineTo(const QPointF &endPoint)
void moveTo(const QPointF &point)
void setFillRule(Qt::FillRule fillRule)
Highlight
QRectF adjusted(qreal dx1, qreal dy1, qreal dx2, qreal dy2) const const
QPointF center() const const
void clear()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString number(double n, char format, int precision)
AlignCenter
NoBrush
WindingFill
font
height
palette
QStyle * style() const const
void update()
width
QWidget * window() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.