added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+10 -4
View File
@@ -13,9 +13,12 @@ public:
: BaseWidget(nullptr)
, vertical_(vertical)
{
if (this->vertical_) {
if (this->vertical_)
{
this->setScaleIndependantWidth(8);
} else {
}
else
{
this->setScaleIndependantHeight(8);
}
}
@@ -26,10 +29,13 @@ public:
painter.setPen(QColor("#999"));
if (this->vertical_) {
if (this->vertical_)
{
painter.drawLine(this->width() / 2, 0, this->width() / 2,
this->height());
} else {
}
else
{
painter.drawLine(0, this->height() / 2, this->width(),
this->height() / 2);
}