1
0
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:
sudden6 2017-03-05 11:56:20 +01:00
parent ec81b07bb3
commit bf0e6817af
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -214,12 +214,10 @@ void FileTransferWidget::paintEvent(QPaintEvent*)
const int buttonFieldWidth = 32; const int buttonFieldWidth = 32;
const int lineWidth = 1; const int lineWidth = 1;
// draw background // Draw the widget background:
if (drawButtonAreaNeeded()) painter.setClipRect(QRect(0, 0, width(), height()));
// Draw the widget background: painter.setBrush(QBrush(backgroundColor));
painter.setClipRect(QRect(0, 0, width(), height())); painter.drawRoundRect(geometry(), r * ratio, r);
painter.setBrush(QBrush(backgroundColor));
painter.drawRoundRect(geometry(), r * ratio, r);
if (drawButtonAreaNeeded()) { if (drawButtonAreaNeeded()) {
// Draw the button background: // Draw the button background: