Skip to content

Commit

Permalink
Set font using platform conditional.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@9169 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Aug 25, 2008
1 parent c05bfb5 commit 0488cf9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/qgsattributetable.cpp
Expand Up @@ -78,7 +78,13 @@ QgsAttributeTable::QgsAttributeTable( QWidget * parent ) :
mPreviousSortIndicatorColumn( -1 )
{
QFont f( font() );
f.setPointSize( f.pointSize() - 2 );
#ifdef Q_WS_MAC
// The default application font for OS X is Lucida Grande 13 point; for small, use 11 point
f.setPointSize( 11 );
#else
f.setFamily( "Helvetica" );
f.setPointSize( 9 );
#endif
setFont( f );
mDelegate = new QgsAttributeTableItemDelegate( this );
setItemDelegate( mDelegate );
Expand Down

0 comments on commit 0488cf9

Please sign in to comment.