MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / init

Method init

3rdparty/qwt/src/qwt_plot_layout.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 struct LabelData
56 {
57 void init( const QwtTextLabel* label )
58 {
59 frameWidth = 0;
60 text = QwtText();
61
62 if ( label )
63 {
64 text = label->text();
65 if ( !( text.testPaintAttribute( QwtText::PaintUsingTextFont ) ) )
66 text.setFont( label->font() );
67
68 frameWidth = label->frameWidth();
69 }
70 }
71
72 QwtText text;
73 int frameWidth;

Callers 1

LayoutDataMethod · 0.45

Calls 6

frameWidthMethod · 0.80
QwtTextClass · 0.70
textMethod · 0.45
testPaintAttributeMethod · 0.45
setFontMethod · 0.45
fontMethod · 0.45

Tested by

no test coverage detected