| 394 | |
| 395 | |
| 396 | void 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 |
nothing calls this directly
no test coverage detected