@@ -352,6 +352,7 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
352
352
<< mLineDistanceDDBtn
353
353
<< mLineDistanceSpnBx
354
354
<< mLineDistanceUnitDDBtn
355
+ << mLineDistanceUnitWidget
355
356
<< mMaxCharAngleDDBtn
356
357
<< mMaxCharAngleInDSpinBox
357
358
<< mMaxCharAngleOutDSpinBox
@@ -365,6 +366,7 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
365
366
<< mPointAngleSpinBox
366
367
<< mPointOffsetDDBtn
367
368
<< mPointOffsetUnitsDDBtn
369
+ << mPointOffsetUnitWidget
368
370
<< mPointOffsetXSpinBox
369
371
<< mPointOffsetYSpinBox
370
372
<< mPointPositionOrderDDBtn
@@ -376,6 +378,7 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
376
378
<< mRepeatDistanceDDBtn
377
379
<< mRepeatDistanceSpinBox
378
380
<< mRepeatDistanceUnitDDBtn
381
+ << mRepeatDistanceUnitWidget
379
382
<< mScaleBasedVisibilityChkBx
380
383
<< mScaleBasedVisibilityDDBtn
381
384
<< mScaleBasedVisibilityMaxDDBtn
@@ -394,10 +397,12 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
394
397
<< mShadowOffsetGlobalChkBx
395
398
<< mShadowOffsetSpnBx
396
399
<< mShadowOffsetUnitsDDBtn
400
+ << mShadowOffsetUnitWidget
397
401
<< mShadowRadiusAlphaChkBx
398
402
<< mShadowRadiusDDBtn
399
403
<< mShadowRadiusDblSpnBx
400
404
<< mShadowRadiusUnitsDDBtn
405
+ << mShadowRadiusUnitWidget
401
406
<< mShadowScaleDDBtn
402
407
<< mShadowScaleSpnBx
403
408
<< mShadowTranspDDBtn
@@ -411,6 +416,7 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
411
416
<< mShapeBorderUnitsDDBtn
412
417
<< mShapeBorderWidthDDBtn
413
418
<< mShapeBorderWidthSpnBx
419
+ << mShapeBorderWidthUnitWidget
414
420
<< mShapeDrawChkBx
415
421
<< mShapeDrawDDBtn
416
422
<< mShapeFillColorBtn
@@ -419,6 +425,7 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
419
425
<< mShapeOffsetUnitsDDBtn
420
426
<< mShapeOffsetXSpnBx
421
427
<< mShapeOffsetYSpnBx
428
+ << mShapeOffsetUnitWidget
422
429
<< mShapePenStyleCmbBx
423
430
<< mShapePenStyleDDBtn
424
431
<< mShapeRadiusDDBtn
@@ -429,11 +436,13 @@ QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas,
429
436
<< mShapeRotationDDBtn
430
437
<< mShapeRotationDblSpnBx
431
438
<< mShapeRotationTypeDDBtn
439
+ << mShapeRadiusUnitWidget
432
440
<< mShapeSVGPathDDBtn
433
441
<< mShapeSVGPathLineEdit
434
442
<< mShapeSizeCmbBx
435
443
<< mShapeSizeTypeDDBtn
436
444
<< mShapeSizeUnitsDDBtn
445
+ << mShapeSizeUnitWidget
437
446
<< mShapeSizeXDDBtn
438
447
<< mShapeSizeXSpnBx
439
448
<< mShapeSizeYDDBtn
@@ -507,6 +516,10 @@ void QgsLabelingGui::connectValueChanged( QList<QWidget *> widgets, const char *
507
516
{
508
517
connect ( w, SIGNAL ( fieldChanged ( QString ) ), this , slot );
509
518
}
519
+ else if ( QgsUnitSelectionWidget* w = qobject_cast<QgsUnitSelectionWidget*>( widget ) )
520
+ {
521
+ connect ( w, SIGNAL ( changed () ), this , slot );
522
+ }
510
523
else if ( QComboBox* w = qobject_cast<QComboBox*>( widget ) )
511
524
{
512
525
connect ( w, SIGNAL ( currentIndexChanged ( int ) ), this , slot );
0 commit comments