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)
82 explicit Meter(QGraphicsItem *parent = 0);
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);
175 Qt::Alignment labelAlignment(
int index)
const;
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);
215 virtual void paint(QPainter *p,
218 QSizeF sizeHint(Qt::SizeHint which,
const QSizeF &constraint = QSizeF())
const;
221 MeterPrivate *
const d;
QHash< QString, QVariant > Data
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.