comparison connectionitem.cpp @ 54:0e5fba6750c2

* Small rendering refinements
author Chris Cannam
date Fri, 12 Nov 2010 17:04:36 +0000
parents 3c46b2ac45d3
children f583e44d9d31
comparison
equal deleted inserted replaced
53:3c46b2ac45d3 54:0e5fba6750c2
29 29
30 paint->save(); 30 paint->save();
31 31
32 ColourSet *colourSet = ColourSet::instance(); 32 ColourSet *colourSet = ColourSet::instance();
33 QColor branchColour = colourSet->getColourFor(m_child->getChangeset()->branch()); 33 QColor branchColour = colourSet->getColourFor(m_child->getChangeset()->branch());
34 paint->setPen(QPen(branchColour, 2)); 34
35 QTransform t = paint->worldTransform();
36 float scale = std::min(t.m11(), t.m22());
37 if (scale < 0.1) {
38 paint->setPen(QPen(branchColour, 0));
39 } else {
40 paint->setPen(QPen(branchColour, 2));
41 }
35 42
36 float xscale = 100; 43 float xscale = 100;
37 44
38 float yscale = 90; 45 float yscale = 90;
39 float size = 50; 46 float size = 50;