Changeset 33c0561 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Jan 9, 2019 6:09:39 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
cf9f39e
Parents:
bbcf9f0
Message:

Replace Apply button menu driven functionality with additional button.
Removed Cancel.
Removed the window system context help button from all affected widgets.
SASVIEW-1239

Location:
src/sas/qtgui/Plotting
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/AddText.py

    r53c771e r33c0561  
    1212        super(AddText, self).__init__(parent) 
    1313        self.setupUi(self) 
     14        # disable the context help icon 
     15        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1416 
    1517        self._font = QtGui.QFont() 
  • src/sas/qtgui/Plotting/ColorMap.py

    r8fad50b r33c0561  
    2828        self.setupUi(self) 
    2929        assert(isinstance(data, Data2D)) 
     30        # disable the context help icon 
     31        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    3032 
    3133        self.data = data 
  • src/sas/qtgui/Plotting/LinearFit.py

    re4c475b7 r33c0561  
    3030 
    3131        self.setupUi(self) 
     32        # disable the context help icon 
     33        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
     34 
    3235        assert(isinstance(max_range, tuple)) 
    3336        assert(isinstance(fit_range, tuple)) 
  • src/sas/qtgui/Plotting/MaskEditor.py

    ra0ad146 r33c0561  
    33import numpy as np 
    44 
    5 from PyQt5 import QtWidgets 
     5from PyQt5 import QtWidgets, QtCore 
    66 
    77from sas.qtgui.Plotting.PlotterData import Data2D 
     
    2424 
    2525        self.setupUi(self) 
     26        # disable the context help icon 
     27        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2628 
    2729        self.data = data 
  • src/sas/qtgui/Plotting/PlotProperties.py

    rfacf4ca r33c0561  
    1818        super(PlotProperties, self).__init__(parent) 
    1919        self.setupUi(self) 
     20        # disable the context help icon 
     21        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
     22 
    2023        self.setFixedSize(self.minimumSizeHint()) 
    2124 
  • src/sas/qtgui/Plotting/ScaleProperties.py

    r54492dc r33c0561  
    2727        super(ScaleProperties, self).__init__(parent) 
    2828        self.setupUi(self) 
     29        # disable the context help icon 
     30        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    2931 
    3032        # Set up comboboxes 
  • src/sas/qtgui/Plotting/SetGraphRange.py

    rd6b8a1d r33c0561  
    1717 
    1818        self.setupUi(self) 
     19        # disable the context help icon 
     20        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
     21 
    1922        assert(isinstance(x_range, tuple)) 
    2023        assert(isinstance(y_range, tuple)) 
  • src/sas/qtgui/Plotting/WindowTitle.py

    r4992ff2 r33c0561  
    33from "Graph_n" to any ASCII text. 
    44""" 
    5 from PyQt5 import QtWidgets 
     5from PyQt5 import QtWidgets, QtCore 
    66 
    77from sas.qtgui.Plotting.UI.WindowTitleUI import Ui_WindowTitle 
     
    1212        super(WindowTitle, self).__init__(parent) 
    1313        self.setupUi(self) 
     14        # disable the context help icon 
     15        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
     16 
    1417        self.txtTitle.setText(new_title) 
    1518 
Note: See TracChangeset for help on using the changeset viewer.