forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -248,7 +248,7 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
|
||||
points += selection.at(0).bottomRight() + QPointF(margin+1, 0);
|
||||
|
||||
|
||||
for(int i = 1; i < selection.count()-1; ++i) {
|
||||
for (int i = 1; i < selection.count()-1; ++i) {
|
||||
|
||||
#define MAX3(a,b,c) qMax(a, qMax(b,c))
|
||||
qreal x = MAX3(selection.at(i-1).right(),
|
||||
@@ -265,7 +265,7 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
|
||||
points += selection.at(selection.count()-1).bottomLeft() + QPointF(-margin, margin+extra);
|
||||
points += selection.at(selection.count()-1).topLeft() + QPointF(-margin, 0);
|
||||
|
||||
for(int i = selection.count()-2; i > 0; --i) {
|
||||
for (int i = selection.count()-2; i > 0; --i) {
|
||||
#define MIN3(a,b,c) qMin(a, qMin(b,c))
|
||||
qreal x = MIN3(selection.at(i-1).left(),
|
||||
selection.at(i).left(),
|
||||
|
||||
Reference in New Issue
Block a user