Skip to content

Commit b0a449e

Browse files
committedJan 24, 2012
use 8pt default font size on android
1 parent 2d8c8c8 commit b0a449e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
425425
qApp->processEvents();
426426

427427
QSettings settings;
428-
setFontSize( settings.value( "/fontPointSize", font().pointSize() ).toInt() );
428+
setFontSize( settings.value( "/fontPointSize", QGIS_DEFAULT_FONTSIZE ).toInt() );
429429

430430
// "theMapCanvas" used to find this canonical instance later
431431
mMapCanvas = new QgsMapCanvas( this, "theMapCanvas" );

‎src/app/qgisapp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,10 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
11601160

11611161
#ifdef ANDROID
11621162
#define QGIS_ICON_SIZE 32
1163+
#define QGIS_DEFAULT_FONTSIZE 8
11631164
#else
11641165
#define QGIS_ICON_SIZE 24
1166+
#define QGIS_DEFAULT_FONTSIZE qApp->font().pointSize()
11651167
#endif
11661168

11671169
#endif

‎src/app/qgsoptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
280280
// set the theme combo
281281
cmbTheme->setCurrentIndex( cmbTheme->findText( settings.value( "/Themes", "default" ).toString() ) );
282282
cmbIconSize->setCurrentIndex( cmbIconSize->findText( settings.value( "/IconSize", QGIS_ICON_SIZE ).toString() ) );
283-
spinFontSize->setValue( settings.value( "/fontPointSize", QgisApp::instance()->font().pointSize() ).toInt() );
283+
spinFontSize->setValue( settings.value( "/fontPointSize", QGIS_DEFAULT_FONTSIZE ).toInt() );
284284
QString name = QApplication::style()->objectName();
285285
cmbStyle->setCurrentIndex( cmbStyle->findText( name, Qt::MatchFixedString ) );
286286
//set the state of the checkboxes

0 commit comments

Comments
 (0)
Please sign in to comment.