Ignore:
Timestamp:
10/24/13 19:43:07 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Make widgets non resizable (if requested) also on non windows platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWBaseWidget.py

    r11734 r11746  
    153153    def __init__(self, parent = None, signalManager = None, title="Orange BaseWidget", modal=FALSE, savePosition = False, resizingEnabled = 1, **args): 
    154154        if resizingEnabled: 
    155             QDialog.__init__(self, parent, Qt.Window) 
     155            QDialog.__init__(self, parent, Qt.Dialog) 
    156156        else: 
    157             QDialog.__init__(self, parent, Qt.Dialog | Qt.MSWindowsFixedSizeDialogHint)# | Qt.WindowMinimizeButtonHint) 
    158              
     157            QDialog.__init__(self, parent, Qt.Dialog | 
     158                             Qt.MSWindowsFixedSizeDialogHint) 
     159 
    159160        # do we want to save widget position and restore it on next load 
    160161        self.savePosition = savePosition 
Note: See TracChangeset for help on using the changeset viewer.