30 lines
465 B
C
30 lines
465 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <QtGui/QColor>
|
||
|
|
|
||
|
|
#include "style.h"
|
||
|
|
|
||
|
|
|
||
|
|
class GraphicsViewStyle : public Style
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
GraphicsViewStyle();
|
||
|
|
|
||
|
|
GraphicsViewStyle(QString jsonText);
|
||
|
|
|
||
|
|
~GraphicsViewStyle() = default;
|
||
|
|
|
||
|
|
public:
|
||
|
|
static void setStyle(QString jsonText);
|
||
|
|
|
||
|
|
private:
|
||
|
|
void loadJson(QJsonObject const &json) override;
|
||
|
|
|
||
|
|
QJsonObject toJson() const override;
|
||
|
|
|
||
|
|
public:
|
||
|
|
QColor BackgroundColor;
|
||
|
|
QColor FineGridColor;
|
||
|
|
QColor CoarseGridColor;
|
||
|
|
};
|