summaryrefslogtreecommitdiff
path: root/src/field-styles/FieldStyle.h
blob: 20da858ee87340c7936157dbe0ea023e8d73733e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef FIELDSTYLE_H
#define FIELDSTYLE_H

#include <QFont>
#include <QColor>

class FieldStyle
{
public:
    FieldStyle();
    FieldStyle(const QString& family, int size,
        bool bold = true, bool italic = false, const QString& colorName = "",
        const QString& prefix = "", const QString& suffix = "",
        bool hasKeyword = false, const QString& keywordColorName = "#000000");
    FieldStyle getKeywordStyle() const;

public:
    QFont font;
    QColor color;
    QString prefix;
    QString suffix;
    bool hasKeyword;
    bool keywordBold;
    bool keywordItalic;
    QColor keywordColor;
};

#endif