Changeset 11444:ec0f7723c7c2 in orange


Ignore:
Timestamp:
03/26/13 14:05:23 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Draw the Annotation placeholder text using the annotation's font.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/items/annotationitem.py

    r11401 r11444  
    6262        return unicode(self.__placeholderText) 
    6363 
    64     placeholderText_ = Property(unicode, placeholderText, setPlaceholderText) 
     64    placeholderText_ = Property(unicode, placeholderText, setPlaceholderText, 
     65                                doc="Placeholder text") 
    6566 
    6667    def paint(self, painter, option, widget=None): 
     
    7374                     self.textInteractionFlags() & Qt.TextEditable): 
    7475            brect = self.boundingRect() 
     76            painter.setFont(self.font()) 
    7577            metrics = painter.fontMetrics() 
    7678            text = metrics.elidedText(self.__placeholderText, Qt.ElideRight, 
Note: See TracChangeset for help on using the changeset viewer.