From 0ea65c65c9eea08a7dbfebb4e6ae0b381dc5516e Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sun, 8 Jan 2012 10:24:15 -0500 Subject: [PATCH] Apply astyle-kdelibs a little more Use 'diff -w --ignore-all-space' to see non-whitespace changes. --- src/Vt102Emulation.cpp | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/Vt102Emulation.cpp b/src/Vt102Emulation.cpp index ef5cd22aa..a00730b42 100644 --- a/src/Vt102Emulation.cpp +++ b/src/Vt102Emulation.cpp @@ -885,15 +885,15 @@ void Vt102Emulation::reportTerminalParms(int p) void Vt102Emulation::reportStatus() { - sendString("\033[0n"); //VT100. Device status report. 0 = Ready. + sendString("\033[0n"); //VT100. Device status report. 0 = Ready. } void Vt102Emulation::reportAnswerBack() { - // FIXME - Test this with VTTEST - // This is really obsolete VT100 stuff. - const char* ANSWER_BACK = ""; - sendString(ANSWER_BACK); + // FIXME - Test this with VTTEST + // This is really obsolete VT100 stuff. + const char* ANSWER_BACK = ""; + sendString(ANSWER_BACK); } /*! @@ -921,8 +921,8 @@ void Vt102Emulation::sendMouseEvent(int cb, int cx, int cy , int eventType) cb += 0x20; //add 32 to signify motion event QString command = QString("\033[M%1%2%3").arg(QChar(cb + 0x20)) - .arg(QChar(cx + 0x20)) - .arg(QChar(cy + 0x20)); + .arg(QChar(cx + 0x20)) + .arg(QChar(cy + 0x20)); sendString(command.toLocal8Bit().constData()); } @@ -958,12 +958,11 @@ void Vt102Emulation::sendKeyEvent(QKeyEvent* event) } // lookup key binding - if ( _keyTranslator ) - { - KeyboardTranslator::Entry entry = _keyTranslator->findEntry( - event->key() , - modifiers, - states ); + if (_keyTranslator) { + KeyboardTranslator::Entry entry = _keyTranslator->findEntry( + event->key() , + modifiers, + states); // send result to terminal QByteArray textToSend;