Format all files
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include "testlight.h"
|
||||
#include <QPainter>
|
||||
|
||||
TestLight::TestLight(QWidget *parent) : QWidget(parent)
|
||||
TestLight::TestLight(QWidget* parent) : QWidget(parent)
|
||||
{
|
||||
setGray();
|
||||
}
|
||||
@@ -61,10 +61,9 @@ void TestLight::setRed()
|
||||
update();
|
||||
}
|
||||
|
||||
void TestLight::paintEvent(QPaintEvent * /*paintEvent*/)
|
||||
void TestLight::paintEvent(QPaintEvent* /*paintEvent*/)
|
||||
{
|
||||
QPainter painter(this);
|
||||
painter.fillRect(this->rect(), lightColor);
|
||||
painter.drawRect(this->rect());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user