forked from AngryFender/Remini
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinedata.cpp
More file actions
23 lines (15 loc) · 720 Bytes
/
Copy pathlinedata.cpp
File metadata and controls
23 lines (15 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "linedata.h"
LineData::LineData() : status(horizontalLine), draw(true), hidden(false) {}
LineData::statusID LineData::getStatus() const { return status; }
void LineData::setStatus(statusID newStatus) { status = newStatus; }
const QString &LineData::getSymbol() const
{
// Static so we return a reference and avoid re-constructing "---" on
// every call. The string is immutable, so this is safe.
static const QString symbol = QStringLiteral("---");
return symbol;
}
bool LineData::getDraw() const { return draw; }
void LineData::setDraw(bool newDraw) { draw = newDraw; }
void LineData::setHidden(bool hidden) { this->hidden = hidden; }
bool LineData::isHidden() const { return hidden; }