From b9b0a973e407b9bb1500f062af2c8445cbaf4ef4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 22 Feb 2019 11:51:57 +0100 Subject: [PATCH] fixes 0003819: no proper input for contact stiffness --- src/Mod/Fem/Gui/TaskFemConstraintContact.cpp | 11 ++++++++--- src/Mod/Fem/Gui/TaskFemConstraintContact.ui | 15 +++++++++++---- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp index 6fe9898e13..50d81033fc 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp +++ b/src/Mod/Fem/Gui/TaskFemConstraintContact.cpp @@ -424,10 +424,15 @@ const std::string TaskFemConstraintContact::getReferences() const } /* Note: */ -double TaskFemConstraintContact::get_Slope() const{return ui->spSlope->value();} -double TaskFemConstraintContact::get_Friction() const{return ui->spFriction->value();} - +double TaskFemConstraintContact::get_Slope() const +{ + return ui->spSlope->rawValue(); +} +double TaskFemConstraintContact::get_Friction() const +{ + return ui->spFriction->value(); +} void TaskFemConstraintContact::changeEvent(QEvent *) { diff --git a/src/Mod/Fem/Gui/TaskFemConstraintContact.ui b/src/Mod/Fem/Gui/TaskFemConstraintContact.ui index d19dd1e808..cfc6b4d8d7 100644 --- a/src/Mod/Fem/Gui/TaskFemConstraintContact.ui +++ b/src/Mod/Fem/Gui/TaskFemConstraintContact.ui @@ -117,10 +117,7 @@ - - - 2 - + 1000000000.000000000000000 @@ -130,6 +127,9 @@ 1000000.000000000000000 + + Pa + @@ -164,6 +164,13 @@ lw_referencesMaster lbl_info_2 + + + Gui::InputField + QLineEdit +
Gui/InputField.h
+
+