Skip to content

Commit

Permalink
use correct capitalization in the data-defined assistant widget title
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 24, 2024
1 parent a9c2e5b commit 9825abf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgspropertyassistantwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "qgsstyle.h"
#include "qgsmarkersymbol.h"
#include "qgslinesymbol.h"
#include "qgsstringutils.h"

QgsPropertyAssistantWidget::QgsPropertyAssistantWidget( QWidget *parent,
const QgsPropertyDefinition &definition, const QgsProperty &initialState,
Expand All @@ -39,7 +40,7 @@ QgsPropertyAssistantWidget::QgsPropertyAssistantWidget( QWidget *parent,

layout()->setContentsMargins( 0, 0, 0, 0 );

setPanelTitle( mDefinition.description() );
setPanelTitle( QgsStringUtils::capitalize( mDefinition.description(), Qgis::Capitalization::TitleCase ) );

mLegendPreview->hide();

Expand Down

0 comments on commit 9825abf

Please sign in to comment.