Replace QPalette::Background with QPalette::Window

This commit is contained in:
Jonas Kvinge
2020-07-18 04:12:50 +02:00
parent 4328831fcd
commit 9b8bfdf33c
6 changed files with 11 additions and 13 deletions

View File

@@ -87,7 +87,7 @@ void BoomAnalyzer::resizeEvent(QResizeEvent* e) {
barPixmap_ = QPixmap(kColumnWidth - 2, HEIGHT);
canvas_ = QPixmap(size());
canvas_.fill(palette().color(QPalette::Background));
canvas_.fill(palette().color(QPalette::Window));
QPainter p(&barPixmap_);
for (uint y = 0; y < HEIGHT; ++y) {
@@ -120,7 +120,7 @@ void BoomAnalyzer::analyze(QPainter& p, const Scope& scope, bool new_frame) {
const uint MAX_HEIGHT = height() - 1;
QPainter canvas_painter(&canvas_);
canvas_.fill(palette().color(QPalette::Background));
canvas_.fill(palette().color(QPalette::Window));
Analyzer::interpolate(scope, scope_);