Changeset c71b20a in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Sep 9, 2018 4:23:00 AM (6 years ago)
- Children:
- 8e674ccf
- Parents:
- 2b8286c
- git-author:
- Ingo Breßler <dev@…> (09/09/18 03:45:26)
- git-committer:
- Ingo Breßler <dev@…> (09/09/18 04:23:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r0dcb71d rc71b20a 1088 1088 return True 1089 1089 1090 def updateDataVisibility(self, updateOnly): 1091 self.dataUpdateOnly = updateOnly 1092 for dataitem in self.all_data: 1093 data = GuiUtils.dataFromItem(dataitem) 1094 data.hidden = self.dataUpdateOnly 1095 self.updateModelIndex(data) 1096 1090 1097 def updateData(self): 1091 1098 """ … … 1093 1100 """ 1094 1101 # Update the chart 1102 self.updateDataVisibility(True) 1095 1103 if self.data_is_loaded: 1096 1104 self.cmdPlot.setText("Show Plot") … … 1813 1821 self.cmdPlot.setText("Show Plot") 1814 1822 # Force data recalculation so existing charts are updated 1815 self.showPlot()1823 # self.showPlot() 1816 1824 # This is an important processEvent. 1817 1825 # This allows charts to be properly updated in order 1818 1826 # of plots being applied. 1819 QtWidgets.QApplication.processEvents()1827 # QtWidgets.QApplication.processEvents() 1820 1828 self.recalculatePlotData() 1821 1829 … … 2270 2278 Create a model or theory index with passed Data1D/Data2D 2271 2279 """ 2280 # set some flag which decides if new plots should be created or 2281 # just existing ones updated, selectively hiding indiv. plot will also work 2282 fitted_data.hidden = getattr(self, 'dataUpdateOnly', True) 2272 2283 if self.data_is_loaded: 2273 2284 if not fitted_data.name: … … 2440 2451 for plot in new_plots: 2441 2452 self.communicate.plotUpdateSignal.emit([plot]) 2453 # enable plots to be shown next time if updateData() wasn't called 2454 self.updateDataVisibility(False) 2442 2455 2443 2456 def complete2D(self, return_data):
Note: See TracChangeset
for help on using the changeset viewer.