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

Method formatChanged

src/gui/widgets/ProjectNotes.cpp:396–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396void ProjectNotes::formatChanged( const QTextCharFormat & _f )
397{
398 QFont font = _f.font();
399 m_comboFont->lineEdit()->setText( font.family() );
400 m_comboSize->lineEdit()->setText( QString::number( font.pointSize() ) );
401 m_actionTextBold->setChecked( font.bold() );
402 m_actionTextItalic->setChecked( font.italic() );
403 m_actionTextUnderline->setChecked( font.underline() );
404
405 QPixmap pix( 16, 16 );
406 pix.fill( _f.foreground().color() );
407 m_actionTextColor->setIcon( pix );
408
409 Engine::getSong()->setModified();
410}
411
412
413

Callers

nothing calls this directly

Calls 5

getSongFunction · 0.85
fillMethod · 0.80
setModifiedMethod · 0.80
setTextMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected