Home
last modified time | relevance | path

Searched refs:adaptativeScale (Results 1 – 1 of 1) sorted by relevance

/dports/graphics/quickqanava/QuickQanava-ab88d77ec62175b9fd499a154ffaf92f7bf23989/src/
H A DqanLineGrid.cpp122 const qreal adaptativeScale = containerZoom < 1. ? gridScale / containerZoom : gridScale; in updateGrid() local
123 … QPointF rectifiedTopLeft{ std::floor(viewRect.topLeft().x() / adaptativeScale) * adaptativeScale, in updateGrid()
124 … std::floor(viewRect.topLeft().y() / adaptativeScale) * adaptativeScale }; in updateGrid()
125 …ectifiedBottomRight{ ( std::ceil(viewRect.bottomRight().x() / adaptativeScale) * adaptativeScale ), in updateGrid()
126 … ( std::ceil(viewRect.bottomRight().y() / adaptativeScale) * adaptativeScale )}; in updateGrid()
129 const int numLinesX = static_cast<int>(round(rectified.width() / adaptativeScale)); in updateGrid()
130 const int numLinesY = static_cast<int>(round(rectified.height() / adaptativeScale)); in updateGrid()
147 auto lx = rectifiedTopLeft.x() + (nlx * adaptativeScale); in updateGrid()
153 … const bool isMajorColumn = qFuzzyCompare( 1. + std::fmod(lx, gridMajor * adaptativeScale), 1. ); in updateGrid()
175 auto py = rectifiedTopLeft.y() + (nly * adaptativeScale); in updateGrid()
[all …]