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
Loading...
Searching...
No Matches

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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ JKQTPGridStyle()

JKQTPGridStyle::JKQTPGridStyle ( bool  isMajor = true)

Member Function Documentation

◆ 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

\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

◆ 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.

\param settings QSettings-object to save to
\param group Group in the QSettings-object to save to

Member Data Documentation

◆ enabled

bool JKQTPGridStyle::enabled

indicates whether to draw the major grid lines

◆ lineColor

QColor JKQTPGridStyle::lineColor

color of the grid

◆ 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: