Skip to content

Commit bfa7c58

Browse files
committed
formatting
1 parent 2090de9 commit bfa7c58

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/PaletteDialog.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ void PalettePatch::setHighlightTest(int colorNr)
4141

4242
void PalettePatch::paintEvent(QPaintEvent* /*event*/)
4343
{
44-
QPainter painter(this);
45-
painter.setPen(isSelected ? Qt::white : QColor(myColor));
46-
painter.setBrush(QBrush(myColor));
47-
painter.drawRect(0, 0, this->width() - 1, this->height() - 1);
44+
QPainter painter(this);
45+
painter.setPen(isSelected ? Qt::white : QColor(myColor));
46+
painter.setBrush(QBrush(myColor));
47+
painter.drawRect(0, 0, this->width() - 1, this->height() - 1);
4848
}
4949

50-
51-
5250
PaletteDialog::PaletteDialog(QWidget* parent)
5351
: QDialog(parent), ui(std::make_unique<Ui::PaletteDialog>())
5452
{

0 commit comments

Comments
 (0)