Searched refs:adaptativeScale (Results 1 – 1 of 1) sorted by relevance
122 const qreal adaptativeScale = containerZoom < 1. ? gridScale / containerZoom : gridScale; in updateGrid() local123 … 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 …]