Changeset 304d082 in sasview for src/sas/qtgui/Plotting
- Timestamp:
- Oct 31, 2017 10:00:59 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 6280464
- Parents:
- 0849aec
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/LinearFit.py
r0849aec r304d082 19 19 20 20 class LinearFit(QtWidgets.QDialog, Ui_LinearFitUI): 21 updatePlot = QtCore.pyqtSignal(tuple) 21 22 def __init__(self, parent=None, 22 23 data=None, … … 178 179 self.txtChi2.setText(formatNumber(self.Chivalue)) 179 180 180 #self.parent.updatePlot.emit((tempx, tempy)) 181 self.parent.emit(QtCore.SIGNAL('updatePlot'), (tempx, tempy)) 181 self.updatePlot.emit((tempx, tempy)) 182 182 183 183 def origData(self): -
src/sas/qtgui/Plotting/Plotter.py
r0849aec r304d082 21 21 1D Plot widget for use with a QDialog 22 22 """ 23 updatePlot = QtCore.pyqtSignal(tuple)24 23 def __init__(self, parent=None, manager=None, quickplot=False): 25 24 super(PlotterWidget, self).__init__(parent, manager=manager, quickplot=quickplot) … … 41 40 self.fit_result.symbol = 13 42 41 self.fit_result.name = "Fit" 43 44 # Add a slot for receiving update signal from LinearFit45 # NEW style signals46 self.updatePlot.connect(self.onFitDisplay)47 # OLD style signals48 # QtCore.QObject.connect(self, QtCore.SIGNAL('updatePlot'), self.onFitDisplay)49 42 50 43 @property … … 365 358 xlabel=self.xLogLabel, 366 359 ylabel=self.yLogLabel) 360 fit_dialog.updatePlot.connect(self.onFitDisplay) 367 361 if fit_dialog.exec_() == QtWidgets.QDialog.Accepted: 368 362 return -
src/sas/qtgui/Plotting/Plotter2D.py
r0849aec r304d082 243 243 self.slicer_widget.close_signal.connect(slicer_closed) 244 244 # Add the plot to the workspace 245 self.manager.parent.workspace().add Window(self.slicer_widget)245 self.manager.parent.workspace().addSubWindow(self.slicer_widget) 246 246 247 247 self.slicer_widget.show() … … 344 344 self.boxwidget = BoxSum(self, model=self.box_sum_model) 345 345 # Add the plot to the workspace 346 self.manager.parent.workspace().add Window(self.boxwidget)346 self.manager.parent.workspace().addSubWindow(self.boxwidget) 347 347 self.boxwidget.show() 348 348 -
src/sas/qtgui/Plotting/PlotterBase.py
r0849aec r304d082 317 317 Copy MPL widget area to buffer 318 318 """ 319 bmp = Qt Gui.QApplication.clipboard()319 bmp = QtWidgets.QApplication.clipboard() 320 320 pixmap = QtGui.QPixmap.grabWidget(self.canvas) 321 321 bmp.setPixmap(pixmap) … … 374 374 # Move the slider all the way up, if present 375 375 vertical_scroll_bar = self.txt_widget.verticalScrollBar() 376 vertical_scroll_bar.triggerAction(Qt Gui.QScrollBar.SliderToMinimum)376 vertical_scroll_bar.triggerAction(QtWidgets.QScrollBar.SliderToMinimum) 377 377 378 378 def onSavePoints(self, plot_data): -
src/sas/qtgui/Plotting/rangeSlider.py
r0849aec r304d082 89 89 90 90 painter = QtGui.QPainter(self) 91 style = Qt Gui.QApplication.style()91 style = QtWidgets.QApplication.style() 92 92 93 93 for i, value in enumerate([self._low, self._high]): … … 173 173 event.accept() 174 174 175 style = Qt Gui.QApplication.style()175 style = QtWidgets.QApplication.style() 176 176 button = event.button() 177 177 … … 264 264 self.setHighValue( new_pos ) 265 265 266 if self.hasTracking():267 self.emit(QtCore.SIGNAL('sliderMoved(int)'), new_pos)268 269 266 270 267 def __pick(self, pt): … … 278 275 opt = QtWidgets.QStyleOptionSlider() 279 276 self.initStyleOption(opt) 280 style = Qt Gui.QApplication.style()277 style = QtWidgets.QApplication.style() 281 278 282 279 gr = style.subControlRect(style.CC_Slider, opt, style.SC_SliderGroove, self)
Note: See TracChangeset
for help on using the changeset viewer.