PIValueTreeEdit: fix default min/max attributes, hide "expression"
This commit is contained in:
@@ -109,7 +109,8 @@ void PIValueTreeEditParameters::createAttributes(QList<PIVariantEdit *> & list,
|
||||
QFormLayout * lay,
|
||||
const PIVariantMap & attr,
|
||||
bool inv_filter) {
|
||||
static PIStringList hidden({"type", Attribute::hidden, Attribute::readOnly, Attribute::isLabel, Attribute::arrayType});
|
||||
static PIStringList hidden(
|
||||
{"type", Attribute::hidden, Attribute::readOnly, Attribute::isLabel, Attribute::arrayType, Attribute::expression});
|
||||
static PIStringList filter({Attribute::arrayMinCount, Attribute::arrayMaxCount, Attribute::arrayReorder, Attribute::arrayResize});
|
||||
list.clear();
|
||||
while (lay->rowCount() > 0)
|
||||
|
||||
@@ -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