From 4800c7717b91af5994dec12e72a0c9566785e2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Carrillo?= Date: Mon, 30 Sep 2024 08:55:22 -0500 Subject: [PATCH] [gui] Add icon for Stacked Diagrams --- images/images.qrc | 1 + images/themes/default/stacked-diagram.svg | 1 + src/gui/vector/qgsdiagramwidget.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 images/themes/default/stacked-diagram.svg diff --git a/images/images.qrc b/images/images.qrc index fe20fe0a5868..117010e8d713 100644 --- a/images/images.qrc +++ b/images/images.qrc @@ -1008,6 +1008,7 @@ themes/default/mIconCloud.svg themes/default/mActionTextInsideRect.svg themes/default/mIconLabelingRules.svg + themes/default/stacked-diagram.svg qgis_tips/symbol_levels.png diff --git a/images/themes/default/stacked-diagram.svg b/images/themes/default/stacked-diagram.svg new file mode 100644 index 000000000000..117ab3be2de0 --- /dev/null +++ b/images/themes/default/stacked-diagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/gui/vector/qgsdiagramwidget.cpp b/src/gui/vector/qgsdiagramwidget.cpp index 4cb0bc72ff03..473852a0b214 100644 --- a/src/gui/vector/qgsdiagramwidget.cpp +++ b/src/gui/vector/qgsdiagramwidget.cpp @@ -48,7 +48,7 @@ QgsDiagramWidget::QgsDiagramWidget( QgsVectorLayer *layer, QgsMapCanvas *canvas, mDiagramTypeComboBox->addItem( QgsApplication::getThemeIcon( QStringLiteral( "text.svg" ) ), tr( "Text Diagram" ), ModeText ); mDiagramTypeComboBox->addItem( QgsApplication::getThemeIcon( QStringLiteral( "histogram.svg" ) ), tr( "Histogram" ), ModeHistogram ); mDiagramTypeComboBox->addItem( QgsApplication::getThemeIcon( QStringLiteral( "stacked-bar.svg" ) ), tr( "Stacked Bars" ), ModeStackedBar ); - mDiagramTypeComboBox->addItem( QgsApplication::getThemeIcon( QStringLiteral( "diagramNone.svg" ) ), tr( "Stacked Diagram" ), ModeStacked ); + mDiagramTypeComboBox->addItem( QgsApplication::getThemeIcon( QStringLiteral( "stacked-diagram.svg" ) ), tr( "Stacked Diagram" ), ModeStacked ); connect( mEngineSettingsButton, &QAbstractButton::clicked, this, &QgsDiagramWidget::showEngineConfigDialog );