Mercurial > hg > octave-nkf
changeset 13663:746c99f44c4b
Now using a terminal font.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Fri, 09 Sep 2011 22:35:10 +0200 |
parents | 32f4713142d8 |
children | eb03d0b39c18 |
files | gui/src/TerminalView.cpp gui/src/terminal/LinuxTerminalEmulation.cpp |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/TerminalView.cpp +++ b/gui/src/TerminalView.cpp @@ -26,8 +26,9 @@ TerminalView::TerminalView (QWidget * parent) : QPlainTextEdit (parent), Terminal () { - setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding); - m_terminalEmulation = TerminalEmulation::newTerminalEmulation (this); + setFont (QFont("Monospace", 10)); + setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding); + m_terminalEmulation = TerminalEmulation::newTerminalEmulation (this); } TerminalView::~TerminalView ()
--- a/gui/src/terminal/LinuxTerminalEmulation.cpp +++ b/gui/src/terminal/LinuxTerminalEmulation.cpp @@ -63,6 +63,17 @@ } break; + case Qt::Key_V: + if (keyEvent->modifiers() & Qt::ControlModifier) + { + // TODO: Lookup and implement Control + V. + } + else + { + m_pty->write (keyEvent->text ().toAscii ()); + } + break; + case Qt::Key_D: if (keyEvent->modifiers() & Qt::ControlModifier) {