Changeset 9138:21e7c9d83d95 in orange


Ignore:
Timestamp:
10/26/11 19:07:21 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
62cb1ca5e37cf47ba16e7fb691c03bf812f6872d
Message:

Centered the Nomogram header. The header and footer are now always fixed constant size.
Fixes #990.

Location:
orange/OrangeWidgets/Classify
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Classify/OWNomogram.py

    r8042 r9138  
    133133        #add a graph widget 
    134134        self.header = OWNomogramHeader(None, self.mainArea) 
    135         self.header.setFixedHeight(self.verticalSpacing) 
     135        self.header.setFixedHeight(60) 
    136136        self.header.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
    137137        self.header.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
     
    140140        self.graph.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
    141141        self.footer = OWNomogramHeader(None, self.mainArea) 
    142         self.footer.setFixedHeight(self.verticalSpacing*2+10) 
     142        self.footer.setFixedHeight(60*2+10) 
    143143        self.footer.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
    144144        self.footer.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) 
  • orange/OrangeWidgets/Classify/OWNomogramGraph.py

    r8042 r9138  
    923923 
    924924    def paintHeader(self, rect, mapper): 
     925        rect = QRect(rect) 
     926        # The header line follows the bottom of the rect. 
     927        rect.setBottom(30)   
    925928        self.headerAttrLine = mapper.getHeaderLine(self, rect) 
    926929        self.headerAttrLine.name = self.nomogram.parent.pointsName[self.nomogram.parent.yAxis] 
Note: See TracChangeset for help on using the changeset viewer.