Plasma
Go to the documentation of this file.
20 #ifndef PLASMA_METER_H
21 #define PLASMA_METER_H
25 #include <QtGui/QGraphicsWidget>
58 Q_PROPERTY(
int minimum READ minimum WRITE setMinimum)
59 Q_PROPERTY(
int maximum READ maximum WRITE setMaximum)
60 Q_PROPERTY(
int value READ value WRITE setValue NOTIFY valueChanged)
61 Q_PROPERTY(
QString svg READ svg WRITE setSvg)
62 Q_PROPERTY(
MeterType meterType READ meterType WRITE setMeterType)
107 void setSvg(
const QString &svg);
118 void setMeterType(MeterType
type);
123 MeterType meterType()
const;
130 void setLabel(
int index,
const QString &text);
136 QString label(
int index)
const;
143 void setLabelColor(
int index,
const QColor &color);
149 QColor labelColor(
int index)
const;
156 void setLabelFont(
int index,
const QFont &font);
162 QFont labelFont(
int index)
const;
169 void setLabelAlignment(
int index,
const Qt::Alignment alignment);
181 QRectF labelRect(
int index)
const;
192 void setMaximum(
int maximum);
197 void setMinimum(
int minimum);
202 void setValue(
int value);
209 void valueChanged(
const int &value);
221 MeterPrivate *
const d;
Provides generic meter widget for Plasma.
Vertical bar meter (like thermometer).
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Horizontal bar meter (like thermometer).
MeterType
Meter types enum.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.