[FEM] fix results dialog equation input

- add missing tooltip and this way remove cryptic default input of the field
- since the field expects plain text, use a QPlainTextEdit
This commit is contained in:
Uwe
2022-06-04 19:58:31 +02:00
parent 3fe354718c
commit 4d7e550d97

View File

@@ -6,14 +6,14 @@
<rect>
<x>0</x>
<y>0</y>
<width>350</width>
<height>567</height>
<width>335</width>
<height>548</height>
</rect>
</property>
<property name="windowTitle">
<string>Show result</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QGroupBox" name="gb_result_type">
<property name="title">
@@ -324,28 +324,36 @@
<property name="title">
<string>User defined equation</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QPushButton" name="calculate">
<property name="text">
<string>Calculate and plot</string>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="user_def_eq">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.875pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Ubuntu'; font-size:8pt;&quot;&gt;P1-P3 # Stress intensity stress equation. Available values are numpy array format. Calculation np.function can be used on available values. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
<widget class="QPushButton" name="calculate">
<property name="text">
<string>Calculate and plot</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="user_def_eq">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>54</height>
</size>
</property>
<property name="toolTip">
<string>Enter here an equation to be calculated.
For possible variables, see the description box below.</string>
</property>
<property name="plainText">
<string>P1 - P3 # Max - Min Principal Stress</string>
</property>
</widget>
</item>
</layout>
</widget>