Minor logic fixes for transitions between debugger layout presets.
This commit is contained in:
parent
e49b40e6c3
commit
1b745599c7
|
@ -2640,6 +2640,14 @@ void ConsoleDebugger::setLayoutOption( int opt )
|
||||||
s[3] = 0;
|
s[3] = 0;
|
||||||
|
|
||||||
vsplitter[0]->setSizes(s);
|
vsplitter[0]->setSizes(s);
|
||||||
|
|
||||||
|
s = mainLayouth->sizes();
|
||||||
|
|
||||||
|
if ( s[2] == 0 )
|
||||||
|
{
|
||||||
|
s[0] = s[1] = s[2] = mainLayouth->width() / 3;
|
||||||
|
mainLayouth->setSizes(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
@ -2663,6 +2671,14 @@ void ConsoleDebugger::setLayoutOption( int opt )
|
||||||
|
|
||||||
vsplitter[0]->setSizes(s);
|
vsplitter[0]->setSizes(s);
|
||||||
vsplitter[1]->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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -446,8 +446,6 @@ class ConsoleDebugger : public QDialog
|
||||||
QLabel *pixLbl;
|
QLabel *pixLbl;
|
||||||
QLabel *cpuCyclesLbl1;
|
QLabel *cpuCyclesLbl1;
|
||||||
QLabel *cpuInstrsLbl1;
|
QLabel *cpuInstrsLbl1;
|
||||||
//QLabel *bpTreeHideLbl;
|
|
||||||
//QLabel *bmTreeHideLbl;
|
|
||||||
QTimer *periodicTimer;
|
QTimer *periodicTimer;
|
||||||
QFont font;
|
QFont font;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue