[QGIS Commit] r9169 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Aug 25 16:48:48 EDT 2008


Author: telwertowski
Date: 2008-08-25 16:48:48 -0400 (Mon, 25 Aug 2008)
New Revision: 9169

Modified:
   trunk/qgis/src/app/qgsattributetable.cpp
Log:
Set font using platform conditional.


Modified: trunk/qgis/src/app/qgsattributetable.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributetable.cpp	2008-08-25 19:10:58 UTC (rev 9168)
+++ trunk/qgis/src/app/qgsattributetable.cpp	2008-08-25 20:48:48 UTC (rev 9169)
@@ -78,7 +78,13 @@
     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 );



More information about the QGIS-commit mailing list