Add tooltip property to node parameters.
This commit is contained in:
@@ -77,7 +77,7 @@ OCIOGradingTransformLinearNode::OCIOGradingTransformLinearNode()
|
||||
|
||||
QString OCIOGradingTransformLinearNode::Name() const
|
||||
{
|
||||
return tr("OCIO Linear Grading Transform");
|
||||
return tr("OCIO Color Grading (Linear)");
|
||||
}
|
||||
|
||||
QString OCIOGradingTransformLinearNode::id() const
|
||||
@@ -103,6 +103,7 @@ void OCIOGradingTransformLinearNode::Retranslate()
|
||||
SetInputName(kContrastInput, tr("Contrast"));
|
||||
SetInputName(kOffsetInput, tr("Offset"));
|
||||
SetInputName(kExposureInput, tr("Exposure"));
|
||||
SetInputProperty(kExposureInput, QStringLiteral("tooltip"), tr("Exposure increments in stops."));
|
||||
SetInputName(kSaturationInput, tr("Saturation"));
|
||||
SetInputName(kPivotInput, tr("Pivot"));
|
||||
SetInputName(kClampBlackEnableInput, tr("Enable Black Clamp"));
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user