mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
profile: move initialization code to ProfileScene
A first in a number of commits to move code from the profile view to the scene. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
15342232ca
commit
c8b3ac0f99
2 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
ProfileScene::ProfileScene()
|
||||
{
|
||||
setSceneRect(0, 0, 100, 100);
|
||||
setItemIndexMethod(QGraphicsScene::NoIndex);
|
||||
}
|
||||
|
||||
ProfileScene::~ProfileScene()
|
||||
|
|
|
@ -466,10 +466,8 @@ ItemPos::ItemPos()
|
|||
void ProfileWidget2::setupSceneAndFlags()
|
||||
{
|
||||
setScene(profileScene.get());
|
||||
scene()->setSceneRect(0, 0, 100, 100);
|
||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
scene()->setItemIndexMethod(QGraphicsScene::NoIndex);
|
||||
setOptimizationFlags(QGraphicsView::DontSavePainterState);
|
||||
setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
|
||||
setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
|
||||
|
|
Loading…
Reference in a new issue