Changeset 8968:249971e40bac in orange


Ignore:
Timestamp:
09/14/11 17:46:27 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
86aead26d9175e9c35c9e392ef59065cc4c70762
Message:

Hidden legend mouseover bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot3d.py

    r8967 r8968  
    925925            legend_pos = self._legend.pos() 
    926926            lx, ly = legend_pos.x(), legend_pos.y() 
    927             if self._legend.boundingRect().adjusted(lx, ly, lx, ly).contains(pos.x(), pos.y()): 
     927            if self.show_legend and self._legend.boundingRect().adjusted(lx, ly, lx, ly).contains(pos.x(), pos.y()): 
    928928                event.scenePos = lambda: QPointF(pos) 
    929929                self._legend.mousePressEvent(event) 
     
    10141014            legend_pos = self._legend.pos() 
    10151015            lx, ly = legend_pos.x(), legend_pos.y() 
    1016             if self._legend.boundingRect().adjusted(lx, ly, lx, ly).contains(pos.x(), pos.y()): 
     1016            if self.show_legend and self._legend.boundingRect().adjusted(lx, ly, lx, ly).contains(pos.x(), pos.y()): 
    10171017                self.setCursor(Qt.PointingHandCursor) 
    10181018            else: 
Note: See TracChangeset for help on using the changeset viewer.