MCPcopy Create free account
hub / github.com/KDAB/KDChart / LineLayoutItem

Method LineLayoutItem

src/KDChart/KDChartLayoutItems.cpp:695–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695KDChart::LineLayoutItem::LineLayoutItem(KDChart::AbstractDiagram *diagram,
696 int length,
697 const QPen &pen,
698 Qt::Alignment legendLineSymbolAlignment,
699 Qt::Alignment alignment)
700 : AbstractLayoutItem(alignment)
701 , mDiagram(diagram)
702 , mLength(length)
703 , mPen(pen)
704 , mLegendLineSymbolAlignment(legendLineSymbolAlignment)
705{
706 // enforce a minimum pen width
707 if (pen.width() < 2)
708 mPen.setWidth(2);
709}
710
711Qt::Orientations KDChart::LineLayoutItem::expandingDirections() const
712{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected