Changeset 11452:ce769ae3b71e in orange


Ignore:
Timestamp:
04/10/13 11:28:46 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Children:
11453:dcd1485536ca, 11462:fbd2b8d69e16
Message:

Fixed LineEdit's initial size/layout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/gui/lineedit.py

    r11366 r11452  
    107107        slot = _ActionSlot(position, action, button, False) 
    108108        self.__actions[position - 1] = slot 
     109 
     110        if not self.testAttribute(Qt.WA_Resized): 
     111            # Need some sensible height to do the layout. 
     112            self.adjustSize() 
     113 
    109114        self.__layoutActions() 
    110115 
Note: See TracChangeset for help on using the changeset viewer.