Skip to content

Commit

Permalink
Fix incorrect font name in font button tooltips when set to limited
Browse files Browse the repository at this point in the history
QFont support mode (e.g. most layout font buttons)
  • Loading branch information
nyalldawson committed Jun 25, 2019
1 parent 2d9dc8d commit 4c02e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfontbutton.cpp
Expand Up @@ -186,7 +186,7 @@ bool QgsFontButton::event( QEvent *e )
fontSize = mFont.pointSizeF();
break;
}
toolTip = QStringLiteral( "<b>%1</b><br>%2<br>Size: %3" ).arg( text(), mFormat.font().family() ).arg( fontSize );
toolTip = QStringLiteral( "<b>%1</b><br>%2<br>Size: %3" ).arg( text(), mMode == ModeTextRenderer ? mFormat.font().family() : mFont.family() ).arg( fontSize );
QToolTip::showText( helpEvent->globalPos(), toolTip );
}
return QToolButton::event( e );
Expand Down

0 comments on commit 4c02e49

Please sign in to comment.