mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix geometry generator type visibility glitch
This commit is contained in:
parent
67555c8432
commit
e19527c369
@ -757,7 +757,15 @@ void QgsLabelingGui::validateGeometryGeneratorExpression()
|
||||
}
|
||||
}
|
||||
|
||||
mGeometryGeneratorWarningLabel->setVisible( !valid );
|
||||
// The collapsible groupbox internally changes the visibility of this
|
||||
// Work around by setting the visibility deferred in the next event loop cycle.
|
||||
QTimer *timer = new QTimer();
|
||||
connect( timer, &QTimer::timeout, this, [this, valid]()
|
||||
{
|
||||
mGeometryGeneratorWarningLabel->setVisible( !valid );
|
||||
} );
|
||||
connect( timer, &QTimer::timeout, timer, &QTimer::deleteLater );
|
||||
timer->start( 0 );
|
||||
}
|
||||
|
||||
void QgsLabelingGui::determineGeometryGeneratorType()
|
||||
|
Loading…
x
Reference in New Issue
Block a user