| 55 | LollipopPlot::~LollipopPlot() = default; |
| 56 | |
| 57 | void 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. |