21#include "moc_qgslabelobstaclesettingswidget.cpp"
33 connect( mObstacleTypeComboBox, qOverload<int>( &QComboBox::currentIndexChanged ),
this, [
this](
int ) {
37 connect( mObstacleFactorSlider, &QSlider::valueChanged,
this, [
this] {
48 mObstacleFactorSlider->setValue(
static_cast<int>( std::round(
settings.factor() * 5 ) ) );
49 mObstacleTypeComboBox->setCurrentIndex( mObstacleTypeComboBox->findData(
static_cast<int>(
settings.type() ) ) );
50 mBlockSignals =
false;
56 settings.setFactor( mObstacleFactorSlider->value() / 5.0 );
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Contains settings related to how the label engine treats features as obstacles.
ObstacleType
Valid obstacle types, which affect how features within the layer will act as obstacles for labels.
@ PolygonInterior
Avoid placing labels over interior of polygon (prefer placing labels totally outside or just slightly...
@ PolygonBoundary
Avoid placing labels over boundary of polygon (prefer placing outside or completely inside polygon).
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.
void setProperty(int key, const QgsProperty &property)
Adds a property to the collection and takes ownership of it.
Represents a vector layer which manages a vector based dataset.