Changeset 10812:12ad1037bcb9 in orange


Ignore:
Timestamp:
04/18/12 15:44:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
efc3ad46d330b5d05b7ea938fde6f117d039f5bd
Message:

Check for legend events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWPCA.py

    r10809 r10812  
    4444 
    4545    def mousePressEvent(self, event): 
     46        if self.isLegendEvent(event, QGraphicsView.mousePressEvent): 
     47            return 
     48 
    4649        if self.is_cutoff_enabled() and event.buttons() & Qt.LeftButton: 
    4750            pos = self.mapToScene(event.pos()) 
     
    5558 
    5659    def mouseMoveEvent(self, event): 
     60        if self.isLegendEvent(event, QGraphicsView.mouseMoveEvent): 
     61            return 
     62 
    5763        if self.is_cutoff_enabled() and event.buttons() & Qt.LeftButton: 
    5864            pos = self.mapToScene(event.pos()) 
Note: See TracChangeset for help on using the changeset viewer.