@@ -373,7 +373,7 @@ void QgsComposerLegendWidget::on_mTitleFontButton_clicked()
373373 if ( mLegend )
374374 {
375375 bool ok;
376- #if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
376+ #if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA)
377377 // Native Mac dialog works only for Qt Carbon
378378 QFont newFont = QFontDialog::getFont ( &ok, mLegend ->style ( QgsComposerLegendStyle::Title ).font (), 0 , QString (), QFontDialog::DontUseNativeDialog );
379379#else
@@ -395,7 +395,7 @@ void QgsComposerLegendWidget::on_mGroupFontButton_clicked()
395395 if ( mLegend )
396396 {
397397 bool ok;
398- #if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
398+ #if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA)
399399 // Native Mac dialog works only for Qt Carbon
400400 QFont newFont = QFontDialog::getFont ( &ok, mLegend ->style ( QgsComposerLegendStyle::Group ).font (), 0 , QString (), QFontDialog::DontUseNativeDialog );
401401#else
@@ -417,7 +417,7 @@ void QgsComposerLegendWidget::on_mLayerFontButton_clicked()
417417 if ( mLegend )
418418 {
419419 bool ok;
420- #if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
420+ #if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA)
421421 // Native Mac dialog works only for Qt Carbon
422422 QFont newFont = QFontDialog::getFont ( &ok, mLegend ->style ( QgsComposerLegendStyle::Subgroup ).font (), 0 , QString (), QFontDialog::DontUseNativeDialog );
423423#else
@@ -439,7 +439,7 @@ void QgsComposerLegendWidget::on_mItemFontButton_clicked()
439439 if ( mLegend )
440440 {
441441 bool ok;
442- #if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && defined(QT_MAC_USE_COCOA)
442+ #if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA)
443443 // Native Mac dialog works only for Qt Carbon
444444 QFont newFont = QFontDialog::getFont ( &ok, mLegend ->style ( QgsComposerLegendStyle::SymbolLabel ).font (), 0 , QString (), QFontDialog::DontUseNativeDialog );
445445#else
0 commit comments