Changeset 6968:e3a2de28dc75 in orange


Ignore:
Timestamp:
09/03/10 14:11:50 (4 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
1ad4f9f8a268a9c787bcd7d9196a24c7716085b2
Message:
  • force sceneRect calculation so QPoint(0,0) is always in the sceneRect
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngDoc.py

    r6958 r6968  
    2828        #self.canvas = QGraphicsScene(0,0,2000,2000) 
    2929        self.canvas = QGraphicsScene() 
     30        oneItem = self.canvas.addRect(QRectF(0.0, 0.0, 1.0, 1.0)) # inital item so sceneRect always contains QPoint(0, 0) 
     31        self.canvas.sceneRect() # call scene rect so int calculates the rect  
     32        self.canvas.removeItem(oneItem) 
     33         
    3034        self.canvasView = orngView.SchemaView(self, self.canvas, self) 
    3135        self.layout().addWidget(self.canvasView) 
Note: See TracChangeset for help on using the changeset viewer.