Changeset 7814:ea50c0386a93 in orange


Ignore:
Timestamp:
04/06/11 13:53:17 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
adb81ac929aa447fefcf99147aa7fe2cc4d4b239
Message:

Added a wheelEvent handlers to CanvasDlg and OWBaseWidget that accept the event but don't do anything.

Location:
orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngCanvas.pyw

    r7799 r7814  
    829829         
    830830        self.saveSettings() 
     831         
     832    def wheelEvent(self, event): 
     833        """ Silently accept the wheel event. This is to ensure combo boxes 
     834        and other controls that have focus don't receive this event unless 
     835        the cursor is over them. 
     836         
     837        """ 
     838        event.accept() 
    831839         
    832840 
  • orange/OrangeWidgets/OWBaseWidget.py

    r7790 r7814  
    372372            self.savedWidgetGeometry = str(self.saveGeometry()) 
    373373        QDialog.closeEvent(self, ev) 
     374         
     375    def wheelEvent(self, event): 
     376        """ Silently accept the wheel event. This is to ensure combo boxes 
     377        and other controls that have focus don't receive this event unless 
     378        the cursor is over them. 
     379         
     380        """ 
     381        event.accept() 
    374382 
    375383    def setCaption(self, caption): 
Note: See TracChangeset for help on using the changeset viewer.