Changeset 9379:bd6641b3b230 in orange


Ignore:
Timestamp:
12/16/11 18:02:21 (2 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
ce82ff03fdf1548c324adc11b1b39c731ff2434e
Message:

Added paint to LabelItem.

Location:
source/orangeqt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/point.cpp

    r9378 r9379  
    7373{ 
    7474} 
    75 /* 
     75 
    7676void LabelItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) 
    7777{ 
     78    /* 
    7879    Q_UNUSED(widget); 
    7980    if (dd->control) { 
     
    101102    if (option->state & (QStyle::State_Selected | QStyle::State_HasFocus)) 
    102103        qt_graphicsItem_highlightSelected(this, painter, option); 
    103 } 
    104 */ 
     104    */ 
     105    QGraphicsTextItem::paint(painter, option, widget); 
     106} 
    105107 
    106108Point::Point(int symbol, QColor color, int size, QGraphicsItem* parent): QGraphicsObject(parent), 
  • source/orangeqt/point.h

    r9378 r9379  
    5353    LabelItem(const QString &text, QGraphicsItem *parent = 0); 
    5454    ~LabelItem(); 
     55 
     56    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); 
    5557}; 
    5658 
Note: See TracChangeset for help on using the changeset viewer.