Changeset 8603:e6d78f7012f4 in orange


Ignore:
Timestamp:
08/04/11 21:44:25 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
e91c4bacaad265f2f8e4adab26a2a80680007ce9
Message:

Add a point_hovered signal that is emitted whenever a point is hovered in NxCanvas

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWNxCanvasQt.py

    r8601 r8603  
    556556        if hasattr(self, 'networkCurve') and self.networkCurve is not None: 
    557557            self.networkCurve.update() 
     558             
     559    def mouseMoveEvent(self, event): 
     560        self.point_hovered.emit(self.nearest_point(self.mapToScene(event.pos()))) 
     561        OWPlot.mouseMoveEvent(self, event) 
  • source/orangeplot/plot.h

    r8571 r8603  
    7676Q_SIGNALS: 
    7777    void selection_changed(); 
     78    void point_hovered(Point* point); 
    7879     
    7980protected: 
Note: See TracChangeset for help on using the changeset viewer.