@@ -271,10 +271,10 @@ void MainWindow::fontSizeChanged(const QString &)
271271 *-------------------------------------------------------------------------------------------*/
272272void MainWindow::sceneScaleChanged (int scale)
273273{
274- double newScale = scale/ 100.0 ;
275- QMatrix oldMatrix = view->matrix ();
276- view->resetMatrix ();
277- view->translate (oldMatrix .dx (), oldMatrix .dy ());
274+ double newScale = scale / 100.0 ;
275+ QTransform oldTransform = view->transform (); // Use transform() instead of matrix()
276+ view->resetTransform (); // Changed from resetMatrix() to resetTransform()
277+ view->translate (oldTransform .dx (), oldTransform .dy ()); // Use dx() and dy() from QTransform
278278 view->scale (newScale, newScale);
279279}
280280
@@ -915,7 +915,7 @@ void MainWindow::openFileWithOdin(){
915915 tr (" Open BLIF" ),
916916 QDir::homePath (),
917917 tr (" BLIF files (*.blif);;All files (*.*)" ),
918- 0 ,
918+ nullptr , // No parent ,
919919 QFileDialog::DontUseNativeDialog);
920920
921921 myContainer->setFilename (actBlifFilename);
@@ -925,10 +925,10 @@ void MainWindow::openFileWithOdin(){
925925 // An error occured
926926 QMessageBox msgBox (QMessageBox::Warning, tr (" No Structure Found in File" ),
927927 " The file you tried to explore does not contain any structures or could not be opened. Please select another file."
928- , 0 , this );
929- msgBox. addButton ( tr ( " Open &Again " ) , QMessageBox::AcceptRole );
930- msgBox.addButton ( tr ( " &Continue " ), QMessageBox::RejectRole );
931- if (msgBox.exec () == QMessageBox::AcceptRole )
928+
929+ , QMessageBox::Open | QMessageBox::Cancel, this );
930+ msgBox.setDefaultButton ( QMessageBox::Open );
931+ if (msgBox.exec () == QMessageBox::Open )
932932 openFileWithOdin ();
933933
934934 }else {
0 commit comments