From 8905749b7949f10a3635faa13b44cba01a6edbe4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Oct 2013 23:30:16 +0200 Subject: default to Qt background Signed-off-by: Stanislaw Halik --- ftnoir_posewidget/glwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftnoir_posewidget/glwidget.cpp b/ftnoir_posewidget/glwidget.cpp index 9f495e0b..275953a7 100644 --- a/ftnoir_posewidget/glwidget.cpp +++ b/ftnoir_posewidget/glwidget.cpp @@ -139,9 +139,9 @@ void GLWidget::project_quad_texture() { for (int i = 0; i < 4; i++) p2[i] = Vec2f(pt[i].x, pt[i].y); - QImage texture(QSize(sx, sy), QImage::Format_RGB888); - texture.fill(Qt::black); + QColor bgColor = palette().color(QPalette::Normal, QPalette::Background); + texture.fill(bgColor); const Vec2f projected[2][3] = { { p2[0], p2[1], p2[2] }, { p2[3], p2[1], p2[2] } }; const Vec2f origs[2][3] = { @@ -227,4 +227,4 @@ void GLWidget::project_quad_texture() { } } pixmap = QPixmap::fromImage(texture); -} \ No newline at end of file +} -- cgit v1.2.3