Changeset 11536:0029490bab9b in orange


Ignore:
Timestamp:
05/21/13 16:59:15 (11 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Workaround for a broken layout with OSX unified title bar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/settings.py

    r11521 r11536  
    418418        tab.setLayout(form) 
    419419 
     420        if self.__macUnified: 
     421            # Need some sensible size otherwise mac unified toolbar 'takes' 
     422            # the space that should be used for layout of the contents 
     423            self.adjustSize() 
     424 
    420425    def addTab(self, widget, text, toolTip=None, icon=None): 
    421426        if self.__macUnified: 
     
    477482        return status 
    478483 
    479     def showEvent(self, event): 
    480         sh = self.centralWidget().sizeHint() 
    481         self.resize(sh) 
    482         return QMainWindow.showEvent(self, event) 
    483  
    484484    def hideEvent(self, event): 
    485485        QMainWindow.hideEvent(self, event) 
Note: See TracChangeset for help on using the changeset viewer.