Mercurial > octave-nkf
comparison libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp @ 19474: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 | c6615ca0a11d |
children | fe689210525c |
comparison
equal
deleted
inserted
replaced
19471:d57edbd761aa | 19474:9c719c504e8d |
---|---|
614 m_cursorColor = useForegroundColor ? QColor () : color; | 614 m_cursorColor = useForegroundColor ? QColor () : color; |
615 } | 615 } |
616 | 616 |
617 void QConsolePrivate::setScrollBufferSize (int value) | 617 void QConsolePrivate::setScrollBufferSize (int value) |
618 { | 618 { |
619 // FIXME: not tested code follows | 619 CONSOLE_SCREEN_BUFFER_INFO sbi; |
620 // CONSOLE_SCREEN_BUFFER_INFO sbi; | 620 GetConsoleScreenBufferInfo (m_stdOut, &sbi); |
621 // GetConsoleScreenBufferInfo (m_stdOut, &sbi); | 621 |
622 // m_bufferSize = QSize (sbi.dwSize.X, qMax (sbi.dwSize.Y, (SHORT)value)); | 622 m_bufferSize = QSize (sbi.dwSize.X, (SHORT)value); |
623 | |
624 updateConsoleSize (true); | |
623 } | 625 } |
624 | 626 |
625 void QConsolePrivate::drawTextBackground (QPainter& p, int cx1, int cy1, | 627 void QConsolePrivate::drawTextBackground (QPainter& p, int cx1, int cy1, |
626 int cx2, int cy2, int cw, int ch) | 628 int cx2, int cy2, int cw, int ch) |
627 { | 629 { |
1731 d->setCursorColor (useForegroundColor, color); | 1733 d->setCursorColor (useForegroundColor, color); |
1732 } | 1734 } |
1733 | 1735 |
1734 void QWinTerminalImpl::setScrollBufferSize(int value) | 1736 void QWinTerminalImpl::setScrollBufferSize(int value) |
1735 { | 1737 { |
1736 // FIXME: not tested code follows | 1738 d->setScrollBufferSize (value); |
1737 // d->setScrollBufferSize (value); | |
1738 } | 1739 } |
1739 | 1740 |
1740 | 1741 |
1741 ////////////////////////////////////////////////////////////////////////////// | 1742 ////////////////////////////////////////////////////////////////////////////// |
1742 | 1743 |