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

Method appendTab

src/gui/widgets/SideBar.cpp:110–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110void SideBar::appendTab( SideBarWidget *widget )
111{
112 SideBarButton *button = new SideBarButton( orientation(), this );
113 button->setText( " " + widget->title() );
114 button->setIcon( widget->icon() );
115 button->setLayoutDirection( Qt::RightToLeft );
116 button->setCheckable( true );
117 m_widgets[button] = widget;
118 m_btnGroup.addButton( button );
119 addWidget( button );
120
121 widget->hide();
122 widget->setMinimumWidth( 200 );
123
124 ToolTip::add( button, widget->title() );
125}
126
127
128

Callers 1

MainWindowMethod · 0.80

Calls 3

addFunction · 0.85
addButtonMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected