mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-16 12:39:00 +02:00
Keep paint at the top in properties editor.
This commit is contained in:
@@ -194,7 +194,7 @@ MeshColorMappingGui::MeshColorMappingGui(Mapping::ptr mapping)
|
||||
_meshItem = _variantManager->addProperty(QVariant::Size, QObject::tr("Dimensions"));
|
||||
_meshItem->setValue(QSize(mesh->nColumns(), mesh->nRows()));
|
||||
_meshItem->setAttribute("minimum", QSize(2,2));
|
||||
_propertyBrowser->insertProperty(_meshItem, _opacityItem); // insert at the beginning
|
||||
_propertyBrowser->insertProperty(_meshItem, _paintItem); // insert at the beginning
|
||||
}
|
||||
|
||||
void MeshColorMappingGui::setValue(QtProperty* property, const QVariant& value)
|
||||
@@ -287,7 +287,7 @@ TextureMappingGui::TextureMappingGui(QSharedPointer<TextureMapping> mapping)
|
||||
_inputItem = _variantManager->addProperty(QtVariantPropertyManager::groupTypeId(),
|
||||
QObject::tr("Input shape"));
|
||||
_buildShapeProperty(_inputItem, inputShape.data());
|
||||
_propertyBrowser->insertProperty(_inputItem, _opacityItem); // insert
|
||||
_propertyBrowser->insertProperty(_inputItem, _paintItem); // insert
|
||||
|
||||
// Collapse input shape.
|
||||
_propertyBrowser->setExpanded(_propertyBrowser->items(_inputItem).at(0), false);
|
||||
@@ -423,7 +423,7 @@ MeshTextureMappingGui::MeshTextureMappingGui(QSharedPointer<TextureMapping> mapp
|
||||
_meshItem = _variantManager->addProperty(QVariant::Size, QObject::tr("Dimensions"));
|
||||
_meshItem->setValue(QSize(mesh->nColumns(), mesh->nRows()));
|
||||
_meshItem->setAttribute("minimum", QSize(2,2));
|
||||
_propertyBrowser->insertProperty(_meshItem, _opacityItem); // insert at the beginning
|
||||
_propertyBrowser->insertProperty(_meshItem, _paintItem); // insert at the beginning
|
||||
}
|
||||
|
||||
void MeshTextureMappingGui::setValue(QtProperty* property, const QVariant& value)
|
||||
|
||||
Reference in New Issue
Block a user