Changeset 8204:902adaa6dea2 in orange


Ignore:
Timestamp:
08/18/11 08:31:36 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
b1a77107535e48fbdbcf7f3eb7f24dfff0301cf8
Message:

Update points whenever their properties are changed.

Location:
source/orangeqt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/curve.h

    r8178 r8204  
    274274    } 
    275275     
     276    update_number_of_items(); 
     277     
    276278    int n = m_pointItems.size(); 
    277279    if (n != values.size()) 
  • source/orangeqt/multicurve.cpp

    r8171 r8204  
    3434void MultiCurve::set_point_colors(const QList< QColor >& colors) 
    3535{ 
    36     update_number_of_items(); 
    3736    update_point_properties("color", colors); 
    3837} 
     
    4039void MultiCurve::set_point_labels(const QStringList& labels) 
    4140{ 
    42     update_number_of_items(); 
    4341    update_point_properties("label", labels, false); 
    4442} 
     
    4644void MultiCurve::set_point_sizes(const QList<int>& sizes) 
    4745{ 
    48     update_number_of_items(); 
    49     update_point_properties("size", sizes); 
     46    update_point_properties("size", sizes, false); 
    5047} 
    5148 
    5249void MultiCurve::set_point_symbols(const QList< int >& symbols) 
    5350{ 
    54     update_number_of_items(); 
    5551    update_point_properties("symbol", symbols, false); 
    5652} 
     
    5854void MultiCurve::update_properties() 
    5955{ 
    60     update_number_of_items(); 
    6156    update_point_coordinates(); 
    6257} 
     
    6459void MultiCurve::shuffle_points() 
    6560{ 
    66     update_number_of_items(); 
    6761    update_items(points(), PointShuffler(), UpdateContinuous); 
    6862} 
     
    7569void MultiCurve::set_points_marked(const QList< bool >& marked) 
    7670{ 
    77     update_number_of_items(); 
    7871    update_point_properties("marked", marked, false); 
    7972} 
  • source/orangeqt/point.cpp

    r8171 r8204  
    171171{ 
    172172    m_color = color; 
     173    update(); 
    173174} 
    174175 
     
    181182{ 
    182183    m_display_mode = mode; 
     184    update(); 
    183185} 
    184186 
     
    191193{ 
    192194    m_size = size; 
     195    update(); 
    193196} 
    194197 
     
    201204{ 
    202205    m_symbol = symbol; 
     206    update(); 
    203207} 
    204208 
Note: See TracChangeset for help on using the changeset viewer.