# HG changeset patch # User John W. Eaton # Date 1368387185 14400 # Node ID 0ee7b4d1b940e2778daca8b169457ed0e5ce2a98 # Parent ba808cd9d86cdb03e46de36117a9a50297436408 * QTerminal.cc: Style fixes. diff -r ba808cd9d86c -r 0ee7b4d1b940 libgui/qterminal/libqterminal/QTerminal.cc --- a/libgui/qterminal/libqterminal/QTerminal.cc Sun May 12 15:23:14 2013 -0400 +++ b/libgui/qterminal/libqterminal/QTerminal.cc Sun May 12 15:33:05 2013 -0400 @@ -44,22 +44,29 @@ // QSettings pointer is checked before emitting. // Set terminal font: - QFont term_font = QFont(); - term_font.setFamily(settings->value("terminal/fontName","Courier New").toString()); - term_font.setPointSize(settings->value("terminal/fontSize",10).toInt ()); + QFont term_font = QFont (); + term_font.setFamily + (settings->value ("terminal/fontName", "Courier New").toString ()); + + term_font.setPointSize (settings->value ("terminal/fontSize", 10).toInt ()); + setTerminalFont (term_font); - QString cursorType = settings->value ("terminal/cursorType","ibeam").toString (); - bool cursorBlinking = settings->value ("terminal/cursorBlinking",true).toBool (); + QString cursorType + = settings->value ("terminal/cursorType", "ibeam").toString (); + + bool cursorBlinking + = settings->value ("terminal/cursorBlinking", true).toBool (); + if (cursorType == "ibeam") - setCursorType(QTerminal::IBeamCursor, cursorBlinking); + setCursorType (QTerminal::IBeamCursor, cursorBlinking); else if (cursorType == "block") - setCursorType(QTerminal::BlockCursor, cursorBlinking); + setCursorType (QTerminal::BlockCursor, cursorBlinking); else if (cursorType == "underline") - setCursorType(QTerminal::UnderlineCursor, cursorBlinking); + setCursorType (QTerminal::UnderlineCursor, cursorBlinking); bool cursorUseForegroundColor - = settings->value ("terminal/cursorUseForegroundColor",true).toBool (); + = settings->value ("terminal/cursorUseForegroundColor", true).toBool (); // FIXME -- we shouldn't duplicate this information here and in the // resource manager.