summary refs log tree commit diff
path: root/src/ColorImageProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ColorImageProvider.cpp')
-rw-r--r--src/ColorImageProvider.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ColorImageProvider.cpp b/src/ColorImageProvider.cpp

index 41fd5d8f..9c371c8c 100644 --- a/src/ColorImageProvider.cpp +++ b/src/ColorImageProvider.cpp
@@ -9,23 +9,23 @@ QPixmap ColorImageProvider::requestPixmap(const QString &id, QSize *size, const QSize &) { - auto args = id.split('?'); + auto args = id.split('?'); - QPixmap source(args[0]); + QPixmap source(args[0]); - if (size) - *size = QSize(source.width(), source.height()); + if (size) + *size = QSize(source.width(), source.height()); - if (args.size() < 2) - return source; + if (args.size() < 2) + return source; - QColor color(args[1]); + QColor color(args[1]); - QPixmap colorized = source; - QPainter painter(&colorized); - painter.setCompositionMode(QPainter::CompositionMode_SourceIn); - painter.fillRect(colorized.rect(), color); - painter.end(); + QPixmap colorized = source; + QPainter painter(&colorized); + painter.setCompositionMode(QPainter::CompositionMode_SourceIn); + painter.fillRect(colorized.rect(), color); + painter.end(); - return colorized; + return colorized; }