MCPcopy Create free account
hub / github.com/LMMS/lmms / paintEvent

Method paintEvent

src/gui/widgets/SideBar.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65protected:
66 virtual void paintEvent( QPaintEvent * )
67 {
68 QStylePainter p( this );
69 QStyleOptionToolButton opt;
70 initStyleOption( &opt );
71 if( orientation() == Qt::Vertical )
72 {
73 const QSize s = sizeHint();
74 p.rotate( 270 );
75 p.translate( -s.height(), 0 );
76 opt.rect = QRect( 0, 0, s.height(), s.width() );
77 }
78 p.drawComplexControl( QStyle::CC_ToolButton, opt );
79 }
80
81
82private:

Callers

nothing calls this directly

Calls 2

QRectClass · 0.85
drawComplexControlMethod · 0.80

Tested by

no test coverage detected