Skip to content

Commit

Permalink
For 32-bit Mac builds, use traditional non-native Qt font dialog. The…
Browse files Browse the repository at this point in the history
… new Qt 4.5 native implementation was added to support 64-bit builds and appears not to have been extensively tested for backward compatibility.

git-svn-id: http://svn.osgeo.org/qgis/trunk@11280 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Aug 6, 2009
1 parent 669b694 commit 2cb0605
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgslabeldialog.cpp
Expand Up @@ -275,7 +275,12 @@ void QgsLabelDialog::changeFont( void )

qreal fontSize = mFont.pointSizeF();
bool resultFlag;
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040500 && !defined(__LP64__)
// Native Mac dialog works only for 64 bit Cocoa (observed in Qt 4.5.2, probably a Qt bug)
mFont = QFontDialog::getFont( &resultFlag, mFont, this, QString(), QFontDialog::DontUseNativeDialog );
#else
mFont = QFontDialog::getFont( &resultFlag, mFont, this );
#endif
if ( resultFlag )
{
if ( mFont.pointSizeF() != fontSize )
Expand Down

0 comments on commit 2cb0605

Please sign in to comment.