Added logic to initialize the fore and background color palettes of the Qt trace logger viewport.
This commit is contained in:
parent
1c0d999033
commit
9e57c49f5a
|
@ -1088,10 +1088,20 @@ void FCEUD_TraceInstruction(uint8 *opcode, int size)
|
|||
QTraceLogView::QTraceLogView(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
QPalette pal;
|
||||
QColor fg("black"), bg("white");
|
||||
|
||||
font.setFamily("Courier New");
|
||||
font.setStyle( QFont::StyleNormal );
|
||||
font.setStyleHint( QFont::Monospace );
|
||||
|
||||
pal = this->palette();
|
||||
pal.setColor(QPalette::Base , bg );
|
||||
pal.setColor(QPalette::Background, bg );
|
||||
pal.setColor(QPalette::WindowText, fg );
|
||||
|
||||
this->setPalette(pal);
|
||||
|
||||
calcFontData();
|
||||
|
||||
vbar = NULL;
|
||||
|
|
Loading…
Reference in New Issue