Changeset 8430:c628e3ddf9c3 in orange


Ignore:
Timestamp:
07/23/11 17:23:56 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
f71ace9f3e07d54b2c3cb4446f1645aebf273bf3
Message:

Keep the graph always centered with QGraphicsView.setSceneRect()

File:
1 edited

Legend:

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

    r8429 r8430  
    553553            self.update_axes() 
    554554            self.update() 
    555             ## TODO: fitInView is very slow, but resetTransform doesn't seem to be doing its job 
    556             # self.resetTransform() 
    557             # self.fitInView(QRectF(self.contentsRect())) 
    558555            self.setSceneRect(QRectF(self.contentsRect())) 
    559556             
Note: See TracChangeset for help on using the changeset viewer.