diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 160737abbca..254ee26154a 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -3689,8 +3689,8 @@ void QgisApp::setupLayerTreeViewFromSettings() model->setFlag( QgsLayerTreeModel::ShowRasterPreviewIcon, s.value( QStringLiteral( "/qgis/createRasterLegendIcons" ), false ).toBool() ); QFont fontLayer, fontGroup; - fontLayer.setBold( s.value( QStringLiteral( "/qgis/legendLayersBold" ), true ).toBool() ); - fontGroup.setBold( s.value( QStringLiteral( "/qgis/legendGroupsBold" ), false ).toBool() ); + fontLayer.setBold( true ); + fontGroup.setBold( false ); model->setLayerTreeNodeFont( QgsLayerTreeNode::NodeLayer, fontLayer ); model->setLayerTreeNodeFont( QgsLayerTreeNode::NodeGroup, fontGroup ); } diff --git a/src/app/qgsoptions.cpp b/src/app/qgsoptions.cpp index 4eea374355a..0fbd839bee4 100644 --- a/src/app/qgsoptions.cpp +++ b/src/app/qgsoptions.cpp @@ -666,8 +666,6 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QListsetChecked( mSettings->value( QStringLiteral( "/qgis/new_layers_visible" ), true ).toBool() ); cbxLegendClassifiers->setChecked( mSettings->value( QStringLiteral( "/qgis/showLegendClassifiers" ), false ).toBool() ); - mLegendLayersBoldChkBx->setChecked( mSettings->value( QStringLiteral( "/qgis/legendLayersBold" ), true ).toBool() ); - mLegendGroupsBoldChkBx->setChecked( mSettings->value( QStringLiteral( "/qgis/legendGroupsBold" ), false ).toBool() ); cbxHideSplash->setChecked( mSettings->value( QStringLiteral( "/qgis/hideSplash" ), false ).toBool() ); mDataSourceManagerNonModal->setChecked( mSettings->value( QStringLiteral( "/qgis/dataSourceManagerNonModal" ), false ).toBool() ); cbxCheckVersion->setChecked( mSettings->value( QStringLiteral( "/qgis/checkVersion" ), true ).toBool() ); @@ -1268,10 +1266,6 @@ void QgsOptions::saveOptions() bool showLegendClassifiers = mSettings->value( QStringLiteral( "/qgis/showLegendClassifiers" ), false ).toBool(); mSettings->setValue( QStringLiteral( "/qgis/showLegendClassifiers" ), cbxLegendClassifiers->isChecked() ); - bool legendLayersBold = mSettings->value( QStringLiteral( "/qgis/legendLayersBold" ), true ).toBool(); - mSettings->setValue( QStringLiteral( "/qgis/legendLayersBold" ), mLegendLayersBoldChkBx->isChecked() ); - bool legendGroupsBold = mSettings->value( QStringLiteral( "/qgis/legendGroupsBold" ), false ).toBool(); - mSettings->setValue( QStringLiteral( "/qgis/legendGroupsBold" ), mLegendGroupsBoldChkBx->isChecked() ); mSettings->setValue( QStringLiteral( "/qgis/hideSplash" ), cbxHideSplash->isChecked() ); mSettings->setValue( QStringLiteral( "/qgis/dataSourceManagerNonModal" ), mDataSourceManagerNonModal->isChecked() ); mSettings->setValue( QStringLiteral( "/qgis/checkVersion" ), cbxCheckVersion->isChecked() ); @@ -1559,9 +1553,7 @@ void QgsOptions::saveOptions() saveGdalDriverList(); // refresh legend if any legend item's state is to be changed - if ( legendLayersBold != mLegendLayersBoldChkBx->isChecked() - || legendGroupsBold != mLegendGroupsBoldChkBx->isChecked() - || legendLayersCapitalize != capitalizeCheckBox->isChecked() ) + if ( legendLayersCapitalize != capitalizeCheckBox->isChecked() ) { // TODO[MD] QgisApp::instance()->legend()->updateLegendItemStyles(); } diff --git a/src/ui/qgsoptionsbase.ui b/src/ui/qgsoptionsbase.ui index 7fd3b8c4bd9..14f4d868db5 100644 --- a/src/ui/qgsoptionsbase.ui +++ b/src/ui/qgsoptionsbase.ui @@ -308,7 +308,7 @@ - 12 + 5 @@ -337,8 +337,8 @@ 0 0 - 580 - 804 + 1159 + 1434 @@ -1032,8 +1032,8 @@ 0 0 - 537 - 1128 + 1092 + 1502 @@ -1562,8 +1562,8 @@ 0 0 - 499 - 754 + 1010 + 1266 @@ -1930,8 +1930,8 @@ 0 0 - 672 - 1043 + 1351 + 1933 @@ -2681,8 +2681,8 @@ 0 0 - 130 - 322 + 741 + 779 @@ -2832,8 +2832,8 @@ 0 0 - 500 - 340 + 813 + 751 @@ -2992,16 +2992,43 @@ - - - - - 12 - 0 - + + + + Create raster icons (may be slow) - - Qt::Vertical + + + + + + Display classification attribute names + + + + + + + + 0 + 0 + + + + Capitalize layer names + + + + + + + + 0 + 0 + + + + Legend item styles @@ -3021,66 +3048,6 @@ - - - - - 0 - 0 - - - - Capitalize layer names - - - - - - - - 0 - 0 - - - - Bold layer names - - - - - - - Display classification attribute names - - - - - - - Bold group names - - - - - - - Create raster icons (may be slow) - - - - - - - - 0 - 0 - - - - Legend item styles - - - @@ -3175,8 +3142,8 @@ 0 0 - 623 - 734 + 1081 + 1164 @@ -3619,8 +3586,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 491 - 610 + 920 + 924 @@ -3888,8 +3855,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 548 - 785 + 1072 + 1551 @@ -4483,8 +4450,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 431 - 376 + 823 + 576 @@ -4622,8 +4589,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 418 - 544 + 838 + 855 @@ -4845,8 +4812,8 @@ The bigger the number, the faster zooming with the mouse wheel will be. 0 0 - 866 - 930 + 1258 + 1349 @@ -5373,23 +5340,12 @@ The bigger the number, the faster zooming with the mouse wheel will be. - - QgsColorButton - QToolButton -
qgscolorbutton.h
- 1 -
QgsScrollArea QScrollArea
qgsscrollarea.h
1
- - QgsSpinBox - QSpinBox -
qgsspinbox.h
-
QgsCollapsibleGroupBox QGroupBox @@ -5402,6 +5358,17 @@ The bigger the number, the faster zooming with the mouse wheel will be.
qgsprojectionselectionwidget.h
1
+ + QgsColorButton + QToolButton +
qgscolorbutton.h
+ 1 +
+ + QgsSpinBox + QSpinBox +
qgsspinbox.h
+
QgsVariableEditorWidget QWidget @@ -5572,8 +5539,6 @@ The bigger the number, the faster zooming with the mouse wheel will be. mLegendGrpBx cmbLegendDoubleClickAction capitalizeCheckBox - mLegendLayersBoldChkBx - mLegendGroupsBoldChkBx cbxLegendClassifiers cbxCreateRasterLegendIcons mLegendGraphicResolutionSpinBox @@ -5679,6 +5644,32 @@ The bigger the number, the faster zooming with the mouse wheel will be. + + + + + + + + + + + + + + + + + + + + + + + + + +