PIValueTreeEdit: fix default min/max attributes, hide "expression"
This commit is contained in:
@@ -155,13 +155,13 @@ PIVariantMap PIVariantEditors::NumberBase::attributes() const {
|
||||
|
||||
PIVariantMap PIVariantEditors::NumberBase::defaultAttributes() {
|
||||
return {
|
||||
{Attribute::widgetType, createTypes() },
|
||||
{Attribute::minimum, -std::numeric_limits<int>::max()},
|
||||
{Attribute::maximum, std::numeric_limits<int>::max() },
|
||||
{Attribute::singleStep, 1. },
|
||||
{Attribute::decimals, 3 },
|
||||
{Attribute::prefix, "" },
|
||||
{Attribute::suffix, "" },
|
||||
{Attribute::widgetType, createTypes() },
|
||||
{Attribute::minimum, -std::numeric_limits<short>::max()},
|
||||
{Attribute::maximum, std::numeric_limits<short>::max() },
|
||||
{Attribute::singleStep, 1. },
|
||||
{Attribute::decimals, 3 },
|
||||
{Attribute::prefix, "" },
|
||||
{Attribute::suffix, "" },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user