Minor logic fixes for transitions between debugger layout presets.

This commit is contained in:
mjbudd77 2021-07-17 15:08:33 -04:00
parent e49b40e6c3
commit 1b745599c7
2 changed files with 16 additions and 2 deletions

View File

@ -2640,6 +2640,14 @@ void ConsoleDebugger::setLayoutOption( int opt )
s[3] = 0;
vsplitter[0]->setSizes(s);
s = mainLayouth->sizes();
if ( s[2] == 0 )
{
s[0] = s[1] = s[2] = mainLayouth->width() / 3;
mainLayouth->setSizes(s);
}
}
break;
case 4:
@ -2663,6 +2671,14 @@ void ConsoleDebugger::setLayoutOption( int opt )
vsplitter[0]->setSizes(s);
vsplitter[1]->setSizes(s);
s = mainLayouth->sizes();
if ( s[2] == 0 )
{
s[0] = s[1] = s[2] = mainLayouth->width() / 3;
mainLayouth->setSizes(s);
}
}
break;
}

View File

@ -446,8 +446,6 @@ class ConsoleDebugger : public QDialog
QLabel *pixLbl;
QLabel *cpuCyclesLbl1;
QLabel *cpuInstrsLbl1;
//QLabel *bpTreeHideLbl;
//QLabel *bmTreeHideLbl;
QTimer *periodicTimer;
QFont font;