|
Toolbox Qt
|
Allow to set style of a GaugeTarget widget.
More...
Public Member Functions | |
| GaugeTargetStyle () | |
| Construct a gauge target style element. | |
| QColor | getColor (GaugeElement idElement) const |
| Retrieve color of a gauge element. | |
| int | getMargins () const |
| Retrieve margins used by the gauge. | |
| double | getMarkFactor () const |
| Retrieve factor used for cursors marks. | |
| void | reset () |
| Reset style to default values. | |
| void | setColor (GaugeElement idElement, const QColor &color) |
| Use to set color of a gauge element. | |
| void | setMargins (int margins) |
| Use to set margins used by the gauge. | |
| void | setMarkFactor (double factor) |
| Retrieve factor used for cursors marks. | |
Allow to set style of a GaugeTarget widget.
| tbq::GaugeTargetStyle::GaugeTargetStyle | ( | ) |
| QColor tbq::GaugeTargetStyle::getColor | ( | GaugeElement | idElement | ) | const |
Retrieve color of a gauge element.
| [in] | idElement | Element ID to retrieve the color. If unknown ID, color Qt::gray is returned. |
| int tbq::GaugeTargetStyle::getMargins | ( | ) | const |
Retrieve margins used by the gauge.
| double tbq::GaugeTargetStyle::getMarkFactor | ( | ) | const |
Retrieve factor used for cursors marks.
Mark correspond to cursors (current value, target, etc...).
The factor (coefficient) is used to determine the size used by cursors
| void tbq::GaugeTargetStyle::setColor | ( | GaugeElement | idElement, |
| const QColor & | color ) |
Use to set color of a gauge element.
| [in] | idElement | Element ID for which to set the color |
| [in] | color | Color to use. |
| void tbq::GaugeTargetStyle::setMargins | ( | int | margins | ) |
Use to set margins used by the gauge.
| [in] | margins | Margins to use in pixels. If value is negative, margins will be set to 0. |
| void tbq::GaugeTargetStyle::setMarkFactor | ( | double | factor | ) |
Retrieve factor used for cursors marks.
Mark correspond to cursors (current value, target, etc...).
The factor (coefficient) is used to determine the size used by cursors
Set factor used for cursors marks.
Mark correspond to cursors (current value, target, etc...).
The factor (coefficient) is used to determine the size used by cursors.
| [in] | factor | Factor coefficient to use for mark cursors. Value will be clamped in range [0.0 ; 10.0] |