blob: 1dc1a041f238eaff69d09f0bfe56a5d6d0149dd3 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "style.h"
namespace qmt {
Style::Style(Type type)
: m_type(type)
{
}
Style::~Style()
{
}
void Style::setLinePen(const QPen &pen)
{
m_linePen = pen;
}
void Style::setOuterLinePen(const QPen &pen)
{
m_outerLinePen = pen;
}
void Style::setInnerLinePen(const QPen &pen)
{
m_innerLinePen = pen;
}
void Style::setExtraLinePen(const QPen &pen)
{
m_extraLinePen = pen;
}
void Style::setTextBrush(const QBrush &brush)
{
m_textBrush = brush;
}
void Style::setFillBrush(const QBrush &brush)
{
m_fillBrush = brush;
}
void Style::setExtraFillBrush(const QBrush &brush)
{
m_extraFillBrush = brush;
}
void Style::setNormalFont(const QFont &font)
{
m_normalFont = font;
}
void Style::setSmallFont(const QFont &font)
{
m_smallFont = font;
}
void Style::setHeaderFont(const QFont &font)
{
m_headerFont = font;
}
} // namespace qmt
|