MCPcopy Create free account
hub / github.com/KDE/labplot / init

Method init

src/backend/worksheet/plots/cartesian/LollipopPlot.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55LollipopPlot::~LollipopPlot() = default;
56
57void LollipopPlot::init() {
58 Q_D(LollipopPlot);
59
60 KConfig config;
61 const auto& group = config.group(QStringLiteral("LollipopPlot"));
62
63 // general
64 d->orientation = (LollipopPlot::Orientation)group.readEntry(QStringLiteral("Orientation"), (int)LollipopPlot::Orientation::Vertical);
65
66 // initial line, symbol and value objects that will be available even if not data column was set yet
67 d->addLine(group);
68 d->addSymbol(group);
69 d->addValue(group);
70}
71
72/*!
73 Returns an icon to be used in the project explorer.

Callers 3

addLineMethod · 0.45
addSymbolMethod · 0.45
addValueMethod · 0.45

Calls 4

addSymbolMethod · 0.80
groupMethod · 0.45
addLineMethod · 0.45
addValueMethod · 0.45

Tested by

no test coverage detected