Skip to content

Commit 21f4ef4

Browse files
committed
removed padding
1 parent b1a60db commit 21f4ef4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/gui/folderstatusview.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,16 @@ void FolderStatusView::paintEvent(QPaintEvent *event)
5353
painter.setRenderHint(QPainter::Antialiasing);
5454

5555
const int radius = 4;
56-
const int padding = 8;
57-
58-
QRect outerRect(0, 0, width(), height());
59-
QRect innerRect = outerRect.adjusted(padding, padding, -padding, -padding);
56+
QRect rect(0, 0, width(), height());
6057

6158
QPainterPath path;
62-
path.addRoundedRect(innerRect, radius, radius);
59+
path.addRoundedRect(rect, radius, radius);
6360

6461
QPalette palette = this->palette();
6562
QColor backgroundColor = palette.color(QPalette::Window);
6663
QColor baseColor = palette.color(QPalette::Base);
6764

68-
painter.fillRect(outerRect, backgroundColor);
65+
painter.fillRect(rect, backgroundColor);
6966
painter.fillPath(path, baseColor);
7067

7168
QTreeView::paintEvent(event);

0 commit comments

Comments
 (0)