Changeset 8215:c946b8c43519 in orange


Ignore:
Timestamp:
08/18/11 11:59:43 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
b48fbef6401eacbda72be48aa72fa45cf15554d2
Message:

Make tooltips in LinProj work with MultiCurve

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Visualize Qt/OWLinProjGraphQt.py

    r8214 r8215  
    7171        self._extra_curves = [] 
    7272        self.current_tooltip_point = None 
    73         self.connect(self, SIGNAL("point_hovered()"), self.draw_tooltips) 
     73        self.connect(self, SIGNAL("point_hovered(Point*)"), self.draw_tooltips) 
    7474         
    7575        self.value_line_curves = [] 
  • source/orangeqt/curve.cpp

    r8213 r8215  
    7474    return; 
    7575  } 
    76   resize_item_list<Point>(m_pointItems, m_data.size()); 
     76  if (m_pointItems.size() != m_data.size()) 
     77  { 
     78    resize_item_list<Point>(m_pointItems, m_data.size()); 
     79    register_points(); 
     80  } 
    7781  Q_ASSERT(m_pointItems.size() == m_data.size()); 
    7882} 
  • source/orangeqt/plot.cpp

    r8178 r8215  
    337337    closest_point.second = 0; 
    338338     
    339     foreach (PlotItem* item, plot_items()) 
    340     { 
    341         if (!m_point_set.contains(item)) 
    342         { 
    343             continue; 
    344         } 
    345         foreach (Point* p, m_point_hash[item]) 
     339    foreach (const PointHash hash, m_point_hash) 
     340    { 
     341        foreach (Point* p, hash) 
    346342        { 
    347343            const double d = distance(p->pos(), pos); 
     
    353349        } 
    354350    } 
     351         
    355352    if(closest_point.second && closest_point.first <= closest_point.second->size()) 
    356353    { 
Note: See TracChangeset for help on using the changeset viewer.