MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / fitInView

Method fitInView

src_gui/mainwindow.cpp:765–769  ·  view source on GitHub ↗

fits the preview into the graphicsView

Source from the content-addressed store, hash-verified

763
764//fits the preview into the graphicsView
765void MainWindow::fitInView() {
766 ui->graphicsView->scene()->setSceneRect(QRectF(0, 0, input.width(), input.height()));
767 ui->graphicsView->setSceneRect(ui->graphicsView->scene()->sceneRect());
768 ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio);
769}
770
771//displays single color channels of the image (handled by an intensitymap)
772void MainWindow::displayChannelIntensity() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected