Changeset 7969b9c in sasview for src/sas/qtgui/Plotting
- Timestamp:
- Nov 9, 2017 8:43:07 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:
- fbfc488
- Parents:
- 4992ff2
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/31/17 10:00:59)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/LinearFit.py
r4992ff2 r7969b9c 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
r4992ff2 r7969b9c 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 … … 368 361 xlabel=self.xLogLabel, 369 362 ylabel=self.yLogLabel) 363 fit_dialog.updatePlot.connect(self.onFitDisplay) 370 364 if fit_dialog.exec_() == QtWidgets.QDialog.Accepted: 371 365 return -
src/sas/qtgui/Plotting/Plotter2D.py
r4992ff2 r7969b9c 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
r4992ff2 r7969b9c 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
r4992ff2 r7969b9c 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.