Changeset 8452:99f9af948fdf in orange


Ignore:
Timestamp:
07/25/11 18:40:31 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
3a93832881a8b266583192b21dceb733693c630c
Message:

Add a white rectangle behind every legend entry, so they remain visible even when hovering over data points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owlegend.py

    r8444 r8452  
    2323        self.rect_item = QGraphicsRectItem(self._rect, self) 
    2424        self.rect_item.setPen(QPen(Qt.NoPen)) 
     25        self.rect_item.setBrush(Qt.white) 
     26        self.rect_item.stackBefore(self.text_item) 
     27        self.rect_item.stackBefore(self.point_item) 
    2528         
    2629    def boundingRect(self): 
Note: See TracChangeset for help on using the changeset viewer.