From 13e9b3ab23da11e8092dbed9a1e57d35b50ebc73 Mon Sep 17 00:00:00 2001 From: GO63-samara Date: Mon, 8 Mar 2021 21:32:38 +0400 Subject: 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. --- pose-widget/pose-widget.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pose-widget/pose-widget.cpp') 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 ); -- cgit v1.2.3