Beautifier: Fix code style

Change-Id: I991f47d2f6844b153cd47ac856e5a76a7a962c94
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Lorenz Haas
2016-06-01 18:12:51 +02:00
committed by hjk
parent 09029041c9
commit cd00e64e37
10 changed files with 19 additions and 19 deletions

View File

@@ -164,7 +164,7 @@ void ConfigurationEditor::keyPressEvent(QKeyEvent *event)
}
}
const bool isShortcut = ((event->modifiers() & Qt::ControlModifier) && key == Qt::Key_Space);
const bool isShortcut = (event->modifiers() & Qt::ControlModifier) && key == Qt::Key_Space;
if (!isShortcut)
QPlainTextEdit::keyPressEvent(event);
@@ -216,12 +216,12 @@ QTextCursor ConfigurationEditor::cursorForTextUnderCursor(QTextCursor tc) const
void ConfigurationEditor::insertCompleterText(const QString &text)
{
QTextCursor tc = textCursor();
// Replace entire word to get case sensitivity right.
tc.movePosition(QTextCursor::Left, QTextCursor::KeepAnchor,
m_completer->completionPrefix().length());
tc.insertText(text);
setTextCursor(tc);
QTextCursor tc = textCursor();
// Replace entire word to get case sensitivity right.
tc.movePosition(QTextCursor::Left, QTextCursor::KeepAnchor,
m_completer->completionPrefix().length());
tc.insertText(text);
setTextCursor(tc);
}
void ConfigurationEditor::updateDocumentation()