diff --git a/examples/desert.tsx b/examples/desert.tsx index 4ee7225658..5e64987cf2 100644 --- a/examples/desert.tsx +++ b/examples/desert.tsx @@ -37,22 +37,22 @@ - - + + - - - + + + - - + + diff --git a/src/tiled/objectselectiontool.cpp b/src/tiled/objectselectiontool.cpp index 843391f52d..46f615f3e3 100644 --- a/src/tiled/objectselectiontool.cpp +++ b/src/tiled/objectselectiontool.cpp @@ -842,7 +842,7 @@ void ObjectSelectionTool::objectsRemoved(const QList &objects) if (objects.contains(mapObject)) { // Avoid referencing the removed object - mMovingObjects.removeAt(i); + mMovingObjects.remove(i); } else { mapObject->setPosition(object.oldPosition); mapObject->setSize(object.oldSize); diff --git a/src/tiled/propertybrowser.cpp b/src/tiled/propertybrowser.cpp index 5b965a969b..5d45fa6cef 100644 --- a/src/tiled/propertybrowser.cpp +++ b/src/tiled/propertybrowser.cpp @@ -529,11 +529,11 @@ void PropertyBrowser::addTileProperties() QtProperty *groupProperty = mGroupManager->addProperty(tr("Tile")); createProperty(IdProperty, QVariant::Int, tr("ID"), groupProperty)->setEnabled(false); - QtProperty *probabilityProperty = createProperty(TileProbabilityProperty, - QVariant::Double, - tr("Probability"), - groupProperty); - + QtVariantProperty *probabilityProperty = createProperty(TileProbabilityProperty, + QVariant::Double, + tr("Probability"), + groupProperty); + probabilityProperty->setAttribute(QLatin1String("decimals"), 3); probabilityProperty->setToolTip(tr("Relative chance this tile will be " "picked while painting terrain"));