Support Class for JKQTPCoordinateAxis, and summarizes all properties that define the visual styling of a grid (minor or major), associated with a JKQTPCoordinateAxis.
More...
#include <jkqtpcoordinateaxesstyle.h>
|
| JKQTPGridStyle (bool isMajor=true) |
void | loadSettings (const QSettings &settings, const QString &group=QString("grid/"), const JKQTPGridStyle &defaultStyle=JKQTPGridStyle()) |
| loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
|
void | saveSettings (QSettings &settings, const QString &group=QString("grid/")) const |
| saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
|
|
bool | enabled |
| indicates whether to draw the major grid lines
|
QColor | lineColor |
| color of the grid
|
Qt::PenStyle | lineStyle |
| line stye of the grid lines
|
double | lineWidth |
| width of the grid lines (in pixel)
|
Support Class for JKQTPCoordinateAxis, and summarizes all properties that define the visual styling of a grid (minor or major), associated with a JKQTPCoordinateAxis.
- See also
- JKQTPCoordinateAxis, Styling System
◆ JKQTPGridStyle()
JKQTPGridStyle::JKQTPGridStyle |
( |
bool | isMajor = true | ) |
|
◆ loadSettings()
void JKQTPGridStyle::loadSettings |
( |
const QSettings & | settings, |
|
|
const QString & | group = QString("grid/"), |
|
|
const JKQTPGridStyle & | defaultStyle = JKQTPGridStyle() ) |
loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
- Parameters
-
settings | QSettings-object to read from |
group | Group in the QSettings-object to read from |
defaultStyle | If a setting cannot be found in settings, default values are taken from this object By default, this is a default-constructed object |
◆ saveSettings()
void JKQTPGridStyle::saveSettings |
( |
QSettings & | settings, |
|
|
const QString & | group = QString("grid/") ) const |
saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
- Parameters
-
settings | QSettings-object to save to |
group | Group in the QSettings-object to save to |
◆ enabled
bool JKQTPGridStyle::enabled |
indicates whether to draw the major grid lines
◆ lineColor
QColor JKQTPGridStyle::lineColor |
◆ lineStyle
Qt::PenStyle JKQTPGridStyle::lineStyle |
line stye of the grid lines
◆ lineWidth
double JKQTPGridStyle::lineWidth |
width of the grid lines (in pixel)
The documentation for this class was generated from the following file: