Mercurial > hg > octave-nkf
changeset 19637:9c719c504e8d gui-release
command window buffer size configurable on windows (bug #41474)
* QWinTerminalImpl.cpp (QConsolePrivate::setScrollBufferSize):
changes the buffer size;
(QWinTerminalImpl::setScrollBufferSize): function called from the routine
that is reading new user preferences, just calls function above
author | Torsten <ttl@justmail.de> |
---|---|
date | Tue, 30 Dec 2014 08:24:14 +0100 |
parents | d57edbd761aa |
children | 521d4959fc42 |
files | libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp +++ b/libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @@ -616,10 +616,12 @@ void QConsolePrivate::setScrollBufferSize (int value) { -// FIXME: not tested code follows -// CONSOLE_SCREEN_BUFFER_INFO sbi; -// GetConsoleScreenBufferInfo (m_stdOut, &sbi); -// m_bufferSize = QSize (sbi.dwSize.X, qMax (sbi.dwSize.Y, (SHORT)value)); + CONSOLE_SCREEN_BUFFER_INFO sbi; + GetConsoleScreenBufferInfo (m_stdOut, &sbi); + + m_bufferSize = QSize (sbi.dwSize.X, (SHORT)value); + + updateConsoleSize (true); } void QConsolePrivate::drawTextBackground (QPainter& p, int cx1, int cy1, @@ -1733,8 +1735,7 @@ void QWinTerminalImpl::setScrollBufferSize(int value) { -// FIXME: not tested code follows -// d->setScrollBufferSize (value); + d->setScrollBufferSize (value); }