Add tooltip property to node parameters.

This commit is contained in:
Thomas Wilshaw
2022-05-07 21:47:52 +01:00
parent f46f8e50dc
commit 6d84df8288
2 changed files with 8 additions and 1 deletions
@@ -571,6 +571,12 @@ void NodeParamViewWidgetBridge::SetProperty(const QString &key, const QVariant &
}
if (key == QStringLiteral("tooltip")) {
for (int i = 0; i < widgets_.size(); i++) {
widgets_.at(i)->setToolTip(value.toString());
}
}
// Parameters for integers, floats, and vectors
if (NodeValue::type_is_numeric(data_type) || NodeValue::type_is_vector(data_type)) {
if (key == QStringLiteral("min")) {