Skip to content

Commit

Permalink
Fix compiling with older Qt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Mar 10, 2019
1 parent 3c4b9d6 commit 5d6d0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgstextformatwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,8 @@ void QgsTextFormatWidget::mFontSizeSpinBox_valueChanged( double d )

void QgsTextFormatWidget::mFontCapitalsComboBox_currentIndexChanged( int index )
{
mRefFont.setCapitalization( mFontCapitalsComboBox->itemData( index ).value<QFont::Capitalization>() );
int capitalsindex = mFontCapitalsComboBox->itemData( index ).toInt();
mRefFont.setCapitalization( ( QFont::Capitalization ) capitalsindex );
updateFont( mRefFont );
}

Expand Down

0 comments on commit 5d6d0fa

Please sign in to comment.