PIValueTreeEdit: fix default min/max attributes, hide "expression"

This commit is contained in:
2023-05-17 14:46:23 +03:00
parent f37a8e6d93
commit 1b7511eef2
2 changed files with 9 additions and 8 deletions

View File

@@ -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, "" },
};
}