mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] Avoid temporary flashing dialog showing when a distance parameter widget is constructed
Fixes #29438
This commit is contained in:
parent
fcdf1f6e78
commit
7c1b7fa27d
@ -880,12 +880,13 @@ QWidget *QgsProcessingDistanceWidgetWrapper::createWidget()
|
|||||||
mWarningLabel->setLayout( warningLayout );
|
mWarningLabel->setLayout( warningLayout );
|
||||||
layout->insertWidget( 4, mWarningLabel );
|
layout->insertWidget( 4, mWarningLabel );
|
||||||
|
|
||||||
setUnits( distanceDef->defaultUnit() );
|
|
||||||
|
|
||||||
QWidget *w = new QWidget();
|
QWidget *w = new QWidget();
|
||||||
layout->setMargin( 0 );
|
layout->setMargin( 0 );
|
||||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||||
w->setLayout( layout );
|
w->setLayout( layout );
|
||||||
|
|
||||||
|
setUnits( distanceDef->defaultUnit() );
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user