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

Method BarPlotPrivate

src/backend/worksheet/plots/cartesian/BarPlot.cpp:360–369  ·  view source on GitHub ↗

############################################################################## ####################### Private implementation ############################### ##############################################################################

Source from the content-addressed store, hash-verified

358// ####################### Private implementation ###############################
359// ##############################################################################
360BarPlotPrivate::BarPlotPrivate(BarPlot* owner)
361 : PlotPrivate(owner)
362 , q(owner) {
363 setFlag(QGraphicsItem::ItemIsSelectable);
364 setAcceptHoverEvents(false);
365
366 // TODO: make this parameters adjustable for the user?
367 m_groupWidth = 1.0; // width of a group and of the gaps around a group
368 m_groupGap = m_groupWidth * 0.1; // gap around a group - the gap between two neighbour groups is 2*m_groupGap
369}
370
371Background* BarPlotPrivate::addBackground(const KConfigGroup& group) {
372 auto* background = new Background(QStringLiteral("background"));

Callers

nothing calls this directly

Calls 1

setFlagFunction · 0.85

Tested by

no test coverage detected