From 5cdd19a9fb0714f0d8d7db9b9a273f68e13ba497 Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Wed, 27 Mar 2024 18:09:50 -0400 Subject: [PATCH] fixup! RampPlugValueWidget : Fix `valueChanged` icon --- python/GafferUI/RampPlugValueWidget.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python/GafferUI/RampPlugValueWidget.py b/python/GafferUI/RampPlugValueWidget.py index f149de0ae22..af92c193fb5 100644 --- a/python/GafferUI/RampPlugValueWidget.py +++ b/python/GafferUI/RampPlugValueWidget.py @@ -78,10 +78,14 @@ def __init__( self, plug, **kw ) : self.__lastPositionChangedReason = None self.__positionsMergeGroupId = 0 - self.__positionLabel = GafferUI.LabelPlugValueWidget( plug.pointXPlug( 0 ) ) + labelWidth = 50 + + self.__positionLabel = GafferUI.LabelPlugValueWidget( plug.pointXPlug( 0 ), horizontalAlignment = GafferUI.HorizontalAlignment.Right ) + self.__positionLabel.label()._qtWidget().setFixedWidth( labelWidth ) self.__positionField = GafferUI.NumericPlugValueWidget( plug.pointXPlug( 0 ) ) - self.__valueLabel = GafferUI.LabelPlugValueWidget( plug.pointYPlug( 0 ) ) + self.__valueLabel = GafferUI.LabelPlugValueWidget( plug.pointYPlug( 0 ), horizontalAlignment = GafferUI.HorizontalAlignment.Right ) + self.__valueLabel.label()._qtWidget().setFixedWidth( labelWidth ) if isinstance( plug.pointYPlug( 0 ), Gaffer.FloatPlug ) : self.__valueField = GafferUI.NumericPlugValueWidget( plug.pointYPlug( 0 ) ) else: @@ -105,8 +109,6 @@ def __init__( self, plug, **kw ) : grid.addChild( self.__valueLabel, ( 0, 1 ), ( GafferUI.HorizontalAlignment.Right, GafferUI.VerticalAlignment.Top ) ) grid.addChild( self.__valueField, ( 1, 1 ), ( GafferUI.HorizontalAlignment.Right, GafferUI.VerticalAlignment.Top ) ) - - self.setPlug( plug ) def __drawModeChanged( self, drawModeWidget ) :