mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: correct indentation in filetransferwidget.cpp
This commit is contained in:
parent
ec81b07bb3
commit
bf0e6817af
|
@ -214,12 +214,10 @@ void FileTransferWidget::paintEvent(QPaintEvent*)
|
|||
const int buttonFieldWidth = 32;
|
||||
const int lineWidth = 1;
|
||||
|
||||
// draw background
|
||||
if (drawButtonAreaNeeded())
|
||||
// Draw the widget background:
|
||||
painter.setClipRect(QRect(0, 0, width(), height()));
|
||||
painter.setBrush(QBrush(backgroundColor));
|
||||
painter.drawRoundRect(geometry(), r * ratio, r);
|
||||
// Draw the widget background:
|
||||
painter.setClipRect(QRect(0, 0, width(), height()));
|
||||
painter.setBrush(QBrush(backgroundColor));
|
||||
painter.drawRoundRect(geometry(), r * ratio, r);
|
||||
|
||||
if (drawButtonAreaNeeded()) {
|
||||
// Draw the button background:
|
||||
|
|
Loading…
Reference in New Issue
Block a user