MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / scaleImage

Method scaleImage

src/Gui/ImageView.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void ImageView::scaleImage(double factor)
98{
99 scaleFactor *= factor;
100
101 imageLabel->resize(scaleFactor * imageLabel->pixmap(Qt::ReturnByValue).size());
102
103 adjustScrollBar(scrollArea->horizontalScrollBar(), factor);
104 adjustScrollBar(scrollArea->verticalScrollBar(), factor);
105}
106
107void ImageView::adjustScrollBar(QScrollBar* scrollBar, double factor)
108{

Callers

nothing calls this directly

Calls 3

pixmapMethod · 0.80
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected