mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Fix incorrect font name in font button tooltips when set to limited
QFont support mode (e.g. most layout font buttons)
This commit is contained in:
parent
4a2adfc3df
commit
521c832117
@ -187,7 +187,7 @@ bool QgsFontButton::event( QEvent *e )
|
|||||||
fontSize = mFont.pointSizeF();
|
fontSize = mFont.pointSizeF();
|
||||||
break;
|
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 );
|
QToolTip::showText( helpEvent->globalPos(), toolTip );
|
||||||
}
|
}
|
||||||
return QToolButton::event( e );
|
return QToolButton::event( e );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user