Changeset 10916:9c26e90af882 in orange


Ignore:
Timestamp:
06/16/12 18:49:43 (23 months ago)
Author:
mstajdohar
Branch:
default
Message:

Added text() method to orangeqt.Point class.

Location:
source/orangeqt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/point.cpp

    r9426 r10916  
    489489    m_label = label; 
    490490} 
    491  
    492 QString Point::label() const 
    493 { 
    494     return m_label; 
    495 } 
    496491*/ 
     492 
     493QString Point::text() const 
     494{ 
     495    return label->toPlainText(); 
     496} 
     497 
    497498#include "point.moc" 
  • source/orangeqt/point.h

    r9379 r10916  
    156156     
    157157    //void set_label(const QString& label); 
    158     //QString label() const; 
     158    QString text() const; 
    159159     
    160160    /** 
     
    176176    LabelItem* label; 
    177177 
     178 
     179 
    178180private: 
    179181    static QPainterPath trianglePath(double d, double rot); 
  • source/orangeqt/point.sip

    r9361 r10916  
    102102     
    103103    DataPoint coordinates() const; 
    104     void set_coordinates(const DataPoint& data_point);     
     104    void set_coordinates(const DataPoint& data_point); 
     105 
     106    QString text() const; 
    105107     
    106108    /** 
Note: See TracChangeset for help on using the changeset viewer.