Skip to content
Permalink
Browse files

Fix labeling aligment DD activation signals

Fixes #37003
  • Loading branch information
elpaso committed Jun 5, 2020
1 parent 4fe0651 commit 0e6a19707e2a0c86c7d2da2c3171b6efdbf7efca
Showing with 8 additions and 8 deletions.
  1. +6 −6 src/gui/qgstextformatwidget.cpp
  2. +2 −2 src/gui/qgstextformatwidget.h
@@ -79,8 +79,8 @@ void QgsTextFormatWidget::initWidget()
connect( mFontMaxPixelSpinBox, static_cast < void ( QSpinBox::* )( int ) > ( &QSpinBox::valueChanged ), this, &QgsTextFormatWidget::mFontMaxPixelSpinBox_valueChanged );
connect( mBufferUnitWidget, &QgsUnitSelectionWidget::changed, this, &QgsTextFormatWidget::mBufferUnitWidget_changed );
connect( mMaskBufferUnitWidget, &QgsUnitSelectionWidget::changed, this, &QgsTextFormatWidget::mMaskBufferUnitWidget_changed );
connect( mCoordXDDBtn, &QgsPropertyOverrideButton::activated, this, &QgsTextFormatWidget::mCoordXDDBtn_activated );
connect( mCoordYDDBtn, &QgsPropertyOverrideButton::activated, this, &QgsTextFormatWidget::mCoordYDDBtn_activated );
connect( mCoordXDDBtn, &QgsPropertyOverrideButton::changed, this, &QgsTextFormatWidget::mCoordXDDBtn_changed );
connect( mCoordYDDBtn, &QgsPropertyOverrideButton::changed, this, &QgsTextFormatWidget::mCoordYDDBtn_changed );
connect( mShapeTypeCmbBx, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsTextFormatWidget::mShapeTypeCmbBx_currentIndexChanged );
connect( mShapeRotationCmbBx, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsTextFormatWidget::mShapeRotationCmbBx_currentIndexChanged );
connect( mShapeSVGParamsBtn, &QPushButton::clicked, this, &QgsTextFormatWidget::mShapeSVGParamsBtn_clicked );
@@ -1496,9 +1496,9 @@ void QgsTextFormatWidget::mMaskBufferUnitWidget_changed()
updateFont( mRefFont );
}

void QgsTextFormatWidget::mCoordXDDBtn_activated( bool active )
void QgsTextFormatWidget::mCoordXDDBtn_changed( )
{
if ( !active ) //no data defined alignment without data defined position
if ( !mCoordXDDBtn->isActive() ) //no data defined alignment without data defined position
{
enableDataDefinedAlignment( false );
}
@@ -1508,9 +1508,9 @@ void QgsTextFormatWidget::mCoordXDDBtn_activated( bool active )
}
}

void QgsTextFormatWidget::mCoordYDDBtn_activated( bool active )
void QgsTextFormatWidget::mCoordYDDBtn_changed( )
{
if ( !active ) //no data defined alignment without data defined position
if ( !mCoordYDDBtn->isActive() ) //no data defined alignment without data defined position
{
enableDataDefinedAlignment( false );
}
@@ -280,8 +280,8 @@ class GUI_EXPORT QgsTextFormatWidget : public QWidget, public QgsExpressionConte
void mFontMaxPixelSpinBox_valueChanged( int px );
void mBufferUnitWidget_changed();
void mMaskBufferUnitWidget_changed();
void mCoordXDDBtn_activated( bool active );
void mCoordYDDBtn_activated( bool active );
void mCoordXDDBtn_changed( );
void mCoordYDDBtn_changed( );
void mShapeTypeCmbBx_currentIndexChanged( int index );
void mShapeRotationCmbBx_currentIndexChanged( int index );
void mShapeSVGParamsBtn_clicked();

0 comments on commit 0e6a197

Please sign in to comment.
You can’t perform that action at this time.