Ignore:
Timestamp:
06/17/12 16:32:13 (23 months ago)
Author:
mstajdohar
Branch:
default
Message:

Added cancel_all_updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/networkcurve.cpp

    r10924 r10925  
    567567void NetworkCurve::update_properties() 
    568568{ 
     569    cancel_all_updates(); 
    569570    update_point_positions(); 
    570571} 
     
    594595void NetworkCurve::scale_axes() 
    595596{ 
     597    cancel_all_updates(); 
    596598    QRectF r2 = QRectF(plot()->contentsRect()); 
    597599    r2.adjust(1, 1, -1, -1); 
     
    621623    for (; uit != uend; ++uit) 
    622624    { 
    623         uit.value()->set_coordinates(((qreal)(qrand() % 1000)) * 1000, ((qreal)(qrand() % 1000)) * 1000); 
     625        uit.value()->set_coordinates(((qreal)(qrand() % 1000)), ((qreal)(qrand() % 1000))); 
    624626    } 
    625627 
     
    10451047void NetworkCurve::add_labels(const NetworkCurve::Labels& labels) 
    10461048{ 
     1049    cancel_all_updates(); 
    10471050    Labels::ConstIterator it = labels.constBegin(); 
    10481051    Labels::ConstIterator end = labels.constEnd(); 
     
    13901393void NetworkCurve::set_node_coordinates(const QMap<int, QPair<double, double> >& coordinates) 
    13911394{ 
     1395    cancel_all_updates(); 
    13921396    NodeItem *node; 
    13931397    QMap<int, QPair<double, double> >::ConstIterator it = coordinates.constBegin(); 
Note: See TracChangeset for help on using the changeset viewer.