mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
improved gameview resizing
This commit is contained in:
parent
0f272a2f51
commit
04a3d311be
2 changed files with 2 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue