improved gameview resizing

This commit is contained in:
Max-Wilhelm Bruker 2009-06-16 21:42:13 +02:00
parent 0f272a2f51
commit 04a3d311be
2 changed files with 2 additions and 19 deletions

View file

@ -131,7 +131,7 @@ void MainWindow::updateSceneSize()
QSizeF zoneSize = zoneLayout->size();
qDebug(QString("updateSceneSize: width=%1").arg(952 + zoneSize.width()).toLatin1());
scene->setSceneRect(sr.x(), sr.y(), 952 + zoneSize.width(), sr.height());
view->scaleToScene();
view->fitInView(scene->sceneRect(), Qt::KeepAspectRatio);
}
void MainWindow::textChanged(const QString &text)