- in the Grid Toolbar, the Grid Y entry is now by default hidden and shown only when there is a need (grid gap link is disabled) in order to maximize the status bar space availability

This commit is contained in:
Marius Stanciu
2022-03-11 14:48:22 +02:00
committed by Marius
parent 1a0769c532
commit a3a8fbf8d5
3 changed files with 24 additions and 8 deletions

View File

@@ -3706,19 +3706,30 @@ class OptionalHideInputSection:
self.cb.stateChanged.connect(self.on_cb_change)
def on_cb_change(self):
if self.cb.checkState() is Qt.CheckState.Checked:
for widget in self.optinputs:
if self.logic is True:
widget.show()
try:
widget.setVisible(True)
except Exception:
widget.show()
else:
widget.hide()
try:
widget.setVisible(False)
except Exception:
widget.hide()
else:
for widget in self.optinputs:
if self.logic is True:
widget.hide()
try:
widget.setVisible(False)
except Exception:
widget.hide()
else:
widget.show()
try:
widget.setVisible(True)
except Exception:
widget.show()
class FCTable(QtWidgets.QTableWidget):