Mercurial > hg > octave-lojdl
changeset 16405:eeedbc7c0740
make command window text black on white background for Windows systems
* QWinTerminalImpl.cpp (QConsolePrivate::QConsolePrivate): Set
m_backgroundColor to Qt::white instead of Qt::black.
(QWinTerminalImpl::viewPaintEvent): Set Pen and Brush to Qt::black
instead of Qt::white.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 31 Mar 2013 23:54:46 -0400 |
parents | 24e755668237 |
children | 7779d9947366 |
files | libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp +++ b/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @@ -227,7 +227,7 @@ m_font.setFamily ("Lucida Console"); m_font.setPointSize (9); m_font.setStyleHint (QFont::TypeWriter); - m_backgroundColor = Qt::black; + m_backgroundColor = Qt::white; m_buffer = m_tmpBuffer = 0; @@ -787,8 +787,8 @@ // Update current pen and store current attributes // FIXME: what about background? attr = (ci->Attributes & 0x00ff); - p.setPen (d->m_colors[attr & 0x000f]); - p.setBrush (d->m_colors[(attr >> 4) & 0x000f]); + p.setPen (Qt::black); + p.setBrush (Qt::black); } // Append current character to the string buffer