Ignore:
Timestamp:
Jul 7, 2016 2:54:18 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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:
0cd8612
Parents:
f0f309d
Message:

Status bar, progress bar, initial treeview context menu + minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/DroppableDataLoadWidget.py

    r481ff26 re540cd2  
    1616        self.setAcceptDrops(True) 
    1717        self.communicator = guimanager.communicator() 
     18        flags = QtCore.Qt.CustomizeWindowHint | QtCore.Qt.WindowTitleHint | QtCore.Qt.WindowSystemMenuHint 
     19        self.setWindowFlags(flags) 
    1820 
    1921    def dragIsOK(self, event): 
     
    2224        """ 
    2325        # Analyze mime data 
    24         if event.mimeData().hasUrls() and self.currentIndex() == 0: 
    25             return True 
    26         else: 
    27             return False 
     26        return bool(event.mimeData().hasUrls() and self.currentIndex() == 0) 
    2827 
    2928    def dragEnterEvent(self, event): 
     
    6160            event.ignore() 
    6261 
     62    def closeEvent(self, event): 
     63        """ 
     64        Overwrite the close event - no close! 
     65        """ 
     66        event.ignore() 
Note: See TracChangeset for help on using the changeset viewer.