diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 23:30:16 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-17 03:16:10 +0200 |
commit | 8905749b7949f10a3635faa13b44cba01a6edbe4 (patch) | |
tree | b9dbbf7a1750eaa3e70a836a1a089a3eb6a11a88 | |
parent | 1f96d6ac964697a98fe5ae1e34d07008b0b89dd9 (diff) |
default to Qt background
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r-- | ftnoir_posewidget/glwidget.cpp | 6 |
1 files 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 +} |