summaryrefslogtreecommitdiffhomepage
path: root/pose-widget
diff options
context:
space:
mode:
authorGO63-samara <go1@list.ru>2021-03-08 21:32:38 +0400
committerGO63-samara <go1@list.ru>2021-03-08 21:32:38 +0400
commit13e9b3ab23da11e8092dbed9a1e57d35b50ebc73 (patch)
tree74e1869ce1807a37a6f78278d617220eb3a3ae71 /pose-widget
parent058942f40e17e091b91df5436d771d61203ccc73 (diff)
Fixed the sizes of the widgets in the main window
Fixed the sizes of the widgets in the main window. Removed the background fill in the pose-widget to better match the dark theme.
Diffstat (limited to 'pose-widget')
-rw-r--r--pose-widget/pose-widget.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index c5a6b78e..e662424c 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -63,12 +63,8 @@ void pose_widget::resizeEvent(QResizeEvent *event)
float w = event->size().width();
float h = event->size().height();
- // fill background by color
- constexpr int clr = 220;
- QImage background(QImage(w, h, QImage::Format_ARGB32));
- background.fill(QColor(clr,clr,clr));
-
// draw axes
+ QImage background(QImage(w, h, QImage::Format_ARGB32));
QPainter p(&background);
p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
p.drawLine(0.5*w, 0 , 0.5*w, h );