JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
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>
Public Member Functions | |
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. | |
Public Attributes | |
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.
JKQTPGridStyle::JKQTPGridStyle | ( | bool | isMajor = true | ) |
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
\param settings QSettings-object to read from \param group Group in the QSettings-object to read from \param defaultStyle If a setting cannot be found in \a settings, default values are taken from this object By default, this is a default-constructed object
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.
\param settings QSettings-object to save to \param group Group in the QSettings-object to save to
bool JKQTPGridStyle::enabled |
indicates whether to draw the major grid lines
QColor JKQTPGridStyle::lineColor |
color of the grid
Qt::PenStyle JKQTPGridStyle::lineStyle |
line stye of the grid lines
double JKQTPGridStyle::lineWidth |
width of the grid lines (in pixel)