Skip to content

Commit

Permalink
Change button displayed text in ui to calculate instead of recalculat…
Browse files Browse the repository at this point in the history
…e. Also renamed the corresponding logic. Calculate button is now the auto-default and can be triggered via enter keystroke.
  • Loading branch information
juliuskarliczek committed Apr 16, 2024
1 parent fdd6131 commit 13bacb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sas/qtgui/Calculators/SldPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def setupUi(self):
# signals
self.ui.helpButton.clicked.connect(self.displayHelp)
self.ui.closeButton.clicked.connect(self.closePanel)
self.ui.recalculateButton.clicked.connect(self.calculateSLD)
self.ui.calculateButton.clicked.connect(self.calculateSLD)

def calculateSLD(self):
self.recalculateSLD()
Expand Down
8 changes: 4 additions & 4 deletions src/sas/qtgui/Calculators/UI/SldPanel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="recalculateButton">
<widget class="QPushButton" name="calculateButton">
<property name="enabled">
<bool>true</bool>
</property>
Expand All @@ -336,10 +336,10 @@
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Recalculate</string>
<string>Calculate</string>
</property>
<property name="autoDefault">
<bool>false</bool>
<bool>true</bool>
</property>
</widget>
</item>
Expand Down Expand Up @@ -407,7 +407,7 @@
<tabstop>editNeutronLength</tabstop>
<tabstop>closeButton</tabstop>
<tabstop>helpButton</tabstop>
<tabstop>recalculateButton</tabstop>
<tabstop>calculateButton</tabstop>
</tabstops>
<resources/>
<connections/>
Expand Down

0 comments on commit 13bacb4

Please sign in to comment.