mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
don't set parent of QFontDialog (fixes #4937, but makes it not follow the globally set font size)
This commit is contained in:
parent
49429c0456
commit
6ba79cafb8
@ -55,9 +55,9 @@ void QgsComposerLabelWidget::on_mFontButton_clicked()
|
|||||||
bool ok;
|
bool ok;
|
||||||
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
|
||||||
// Native Mac dialog works only for Qt Carbon
|
// Native Mac dialog works only for Qt Carbon
|
||||||
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this, QString(), QFontDialog::DontUseNativeDialog );
|
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), 0, QString(), QFontDialog::DontUseNativeDialog );
|
||||||
#else
|
#else
|
||||||
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font(), this );
|
QFont newFont = QFontDialog::getFont( &ok, mComposerLabel->font() );
|
||||||
#endif
|
#endif
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user