mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
use 8pt default font size on android
This commit is contained in:
parent
2d8c8c8cee
commit
b0a449e5e9
@ -425,7 +425,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
|
||||
qApp->processEvents();
|
||||
|
||||
QSettings settings;
|
||||
setFontSize( settings.value( "/fontPointSize", font().pointSize() ).toInt() );
|
||||
setFontSize( settings.value( "/fontPointSize", QGIS_DEFAULT_FONTSIZE ).toInt() );
|
||||
|
||||
// "theMapCanvas" used to find this canonical instance later
|
||||
mMapCanvas = new QgsMapCanvas( this, "theMapCanvas" );
|
||||
|
@ -1160,8 +1160,10 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
|
||||
|
||||
#ifdef ANDROID
|
||||
#define QGIS_ICON_SIZE 32
|
||||
#define QGIS_DEFAULT_FONTSIZE 8
|
||||
#else
|
||||
#define QGIS_ICON_SIZE 24
|
||||
#define QGIS_DEFAULT_FONTSIZE qApp->font().pointSize()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -280,7 +280,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
|
||||
// set the theme combo
|
||||
cmbTheme->setCurrentIndex( cmbTheme->findText( settings.value( "/Themes", "default" ).toString() ) );
|
||||
cmbIconSize->setCurrentIndex( cmbIconSize->findText( settings.value( "/IconSize", QGIS_ICON_SIZE ).toString() ) );
|
||||
spinFontSize->setValue( settings.value( "/fontPointSize", QgisApp::instance()->font().pointSize() ).toInt() );
|
||||
spinFontSize->setValue( settings.value( "/fontPointSize", QGIS_DEFAULT_FONTSIZE ).toInt() );
|
||||
QString name = QApplication::style()->objectName();
|
||||
cmbStyle->setCurrentIndex( cmbStyle->findText( name, Qt::MatchFixedString ) );
|
||||
//set the state of the checkboxes
|
||||
|
Loading…
x
Reference in New Issue
Block a user