Changeset 60a4e71 in sasview for src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
- Timestamp:
- Sep 11, 2018 2:50:23 AM (6 years ago)
- Parents:
- 343d7fd (diff), 8e674ccf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Ingo Breßler <dev@…> (09/11/18 02:50:23)
- git-committer:
- GitHub <noreply@…> (09/11/18 02:50:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rf3cc979 r60a4e71 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") … … 1815 1823 self.cmdPlot.setText("Show Plot") 1816 1824 # Force data recalculation so existing charts are updated 1817 self.showPlot()1825 # self.showPlot() 1818 1826 # This is an important processEvent. 1819 1827 # This allows charts to be properly updated in order 1820 1828 # of plots being applied. 1821 QtWidgets.QApplication.processEvents()1829 # QtWidgets.QApplication.processEvents() 1822 1830 self.recalculatePlotData() 1823 1831 … … 2272 2280 Create a model or theory index with passed Data1D/Data2D 2273 2281 """ 2282 # set some flag which decides if new plots should be created or 2283 # just existing ones updated, selectively hiding indiv. plot will also work 2284 fitted_data.hidden = getattr(self, 'dataUpdateOnly', True) 2274 2285 if self.data_is_loaded: 2275 2286 if not fitted_data.name: … … 2442 2453 for plot in new_plots: 2443 2454 self.communicate.plotUpdateSignal.emit([plot]) 2455 # enable plots to be shown next time if updateData() wasn't called 2456 self.updateDataVisibility(False) 2444 2457 2445 2458 def complete2D(self, return_data):
Note: See TracChangeset
for help on using the changeset viewer.