mirror of https://github.com/CGAL/cgal
Add recenter and improve help
This commit is contained in:
parent
dae71df61b
commit
93712c46cd
|
|
@ -204,8 +204,11 @@ MainWindow::on_actionClear_triggered()
|
||||||
void
|
void
|
||||||
MainWindow::on_actionRecenter_triggered()
|
MainWindow::on_actionRecenter_triggered()
|
||||||
{
|
{
|
||||||
// this->graphicsView->setSceneRect(convert(square));
|
if(tree.empty()){
|
||||||
// this->graphicsView->fitInView(convert(square), Qt::KeepAspectRatio);
|
return;
|
||||||
|
}
|
||||||
|
this->graphicsView->setSceneRect(pgi->boundingRect());
|
||||||
|
this->graphicsView->fitInView(pgi->boundingRect(), Qt::KeepAspectRatio);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue