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


Ignore:
Timestamp:
Jan 9, 2019 6:09:39 AM (6 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/MainWindow
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/AboutBox.py

    r7385fec r33c0561  
    11import functools 
    2 from PyQt5 import QtWidgets 
     2from PyQt5 import QtWidgets, QtCore 
    33 
    44import sas.sasview 
     
    1414        super(AboutBox, self).__init__(parent) 
    1515        self.setupUi(self) 
     16        # disable the context help icon 
     17        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    1618 
    1719        self.setWindowTitle("About") 
  • src/sas/qtgui/MainWindow/CategoryManager.py

    r3d18691 r33c0561  
    135135        super(CategoryManager, self).__init__(parent) 
    136136        self.setupUi(self) 
     137 
     138        # disable the context help icon 
     139        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    137140 
    138141        self.communicator = manager.communicator() 
     
    327330        super(ChangeCategory, self).__init__(parent) 
    328331        self.setupUi(self) 
     332        # disable the context help icon 
     333        self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowContextHelpButtonHint) 
    329334 
    330335        self.model = model 
  • src/sas/qtgui/MainWindow/GuiManager.py

    rd1ad101 r33c0561  
    5959        QDialog.__init__(self, parent) 
    6060        self.setupUi(self) 
     61        # disable the context help icon 
     62        self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) 
     63 
    6164 
    6265class GuiManager(object): 
  • src/sas/qtgui/MainWindow/MainWindow.py

    r09b7da68 r33c0561  
    6060    splash.show() 
    6161    app.setAttribute(Qt.AA_EnableHighDpiScaling) 
     62 
    6263    # fix for pyinstaller packages app to avoid ReactorAlreadyInstalledError 
    6364    import sys 
Note: See TracChangeset for help on using the changeset viewer.