Changeset 8314:30c78473c2c3 in orange


Ignore:
Timestamp:
06/13/11 12:22:35 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
df8d96850428efa50fb631e3a16c970b9f4f762e
Message:

remove debug calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWGraphQt.py

    r8313 r8314  
    6868from OWBaseWidget import unisetattr 
    6969from OWGraphTools import *      # user defined curves, ... 
    70 from Orange.misc import deprecated_members 
     70from Orange.misc import deprecated_members, deprecated_attribute 
    7171 
    7272@deprecated_members({ 
     
    117117        self._pressed_mouse_button = Qt.NoButton 
    118118        self.selection_items = [] 
    119         self.selectionCurveList = [] 
    120119        self._current_ps_item = None 
    121120        self.curves = [] 
     
    143142        self.update() 
    144143         
     144    selectionCurveList = deprecated_attribute("selectionCurveList", "selection_items") 
     145     
    145146    def __setattr__(self, name, value): 
    146147        unisetattr(self, name, value, QGraphicsView) 
     
    178179    def setShowMainTitle(self, b): 
    179180        self.showMainTitle = b 
    180         if self.showMainTitle and self.mainTitle: 
    181             self.setTitle(self.mainTitle) 
    182         else: 
    183             self.setTitle('') 
    184         self.repaint() 
     181        self.replot() 
    185182 
    186183    def setMainTitle(self, t): 
    187         qDebug(t) 
    188184        self.mainTitle = t 
    189         if self.showMainTitle and self.mainTitle: 
    190             self.setTitle(self.mainTitle) 
    191         else: 
    192             self.setTitle('') 
    193         self.repaint() 
     185        self.replot() 
    194186 
    195187    def setShowXaxisTitle(self, b = -1): 
     
    427419        point = self.map_from_widget(event.pos()) 
    428420        if event.button() == Qt.LeftButton and self.state == SELECT_RECTANGLE and self.graph_area.contains(point): 
    429             qDebug('Press: ' + repr(event.button())) 
    430421            self._selection_start_point = self.map_from_widget(event.pos()) 
    431422            self._current_ps_item = QGraphicsRectItem(parent=self.graph_item, scene=self.canvas) 
     
    437428        if event.buttons(): 
    438429            self.static_click = False 
    439         qDebug('Move: ' + repr(event.button())) 
    440430        if self._pressed_mouse_button == Qt.LeftButton: 
    441431            point = self.map_from_widget(event.pos()) 
    442432            if self.state == SELECT_RECTANGLE and self.graph_area.contains(point): 
    443                 qDebug('Move move event') 
    444433                self._current_ps_item.setRect(QRectF(self._selection_start_point, point)) 
    445434             
     
    453442        self._pressed_mouse_button = Qt.NoButton 
    454443        if event.button() == Qt.LeftButton and self._current_ps_item: 
    455             qDebug('Mouse release event') 
    456444            self.selection_items.append(self._current_ps_item) 
    457445            self._current_ps_item = None 
Note: See TracChangeset for help on using the changeset viewer.