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

Function labelWidget

src/gui/SetupDialog.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68#include "MidiDummy.h"
69
70inline void labelWidget( QWidget * _w, const QString & _txt )
71{
72 QLabel * title = new QLabel( _txt, _w );
73 QFont f = title->font();
74 f.setBold( true );
75 title->setFont( pointSize<12>( f ) );
76
77
78 assert( dynamic_cast<QBoxLayout *>( _w->layout() ) != NULL );
79
80 dynamic_cast<QBoxLayout *>( _w->layout() )->addSpacing( 5 );
81 dynamic_cast<QBoxLayout *>( _w->layout() )->addWidget( title );
82 dynamic_cast<QBoxLayout *>( _w->layout() )->addSpacing( 10 );
83}
84
85
86

Callers 1

SetupDialogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected