mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
This commit is contained in:
@@ -234,9 +234,8 @@ void RimWellPathTarget::flagRadius1AsIncorrect( bool isEditable, bool isIncorrec
|
||||
if ( actualRadius < radius1() )
|
||||
{
|
||||
m_dogleg1.uiCapability()->setUiContentTextColor( Qt::red );
|
||||
m_dogleg1.uiCapability()->setUiToolTip(
|
||||
"Actual Dogleg: " + QString::number( doglegFromRadius( actualRadius ) ) +
|
||||
"\nThe dogleg constraint is not satisfied!" );
|
||||
m_dogleg1.uiCapability()->setUiToolTip( "Actual Dogleg: " + QString::number( doglegFromRadius( actualRadius ) ) +
|
||||
"\nThe dogleg constraint is not satisfied!" );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -264,9 +263,8 @@ void RimWellPathTarget::flagRadius2AsIncorrect( bool isEditable, bool isIncorrec
|
||||
if ( actualRadius < radius2() )
|
||||
{
|
||||
m_dogleg2.uiCapability()->setUiContentTextColor( Qt::red );
|
||||
m_dogleg2.uiCapability()->setUiToolTip(
|
||||
"Actual Dogleg: " + QString::number( doglegFromRadius( actualRadius ) ) +
|
||||
"\nThe dogleg constraint is not satisfied!" );
|
||||
m_dogleg2.uiCapability()->setUiToolTip( "Actual Dogleg: " + QString::number( doglegFromRadius( actualRadius ) ) +
|
||||
"\nThe dogleg constraint is not satisfied!" );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -323,9 +321,11 @@ QList<caf::PdmOptionItemInfo> RimWellPathTarget::calculateValueOptions( const ca
|
||||
{
|
||||
options.push_back(
|
||||
caf::PdmOptionItemInfo( "o->",
|
||||
RimWellPathTarget::POINT_AND_TANGENT ) ); //, false, QIcon(":/WellTargetPointTangent16x16.png") ));
|
||||
options.push_back(
|
||||
caf::PdmOptionItemInfo( "o", RimWellPathTarget::POINT ) ); //, false, QIcon(":/WellTargetPoint16x16.png")));
|
||||
RimWellPathTarget::POINT_AND_TANGENT ) ); //, false,
|
||||
// QIcon(":/WellTargetPointTangent16x16.png")
|
||||
//));
|
||||
options.push_back( caf::PdmOptionItemInfo( "o", RimWellPathTarget::POINT ) ); //, false,
|
||||
// QIcon(":/WellTargetPoint16x16.png")));
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user