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. --- opentrack/main-window.ui | 130 +++++++++++++++++++++++++++++++++++++------- pose-widget/pose-widget.cpp | 6 +- 2 files changed, 111 insertions(+), 25 deletions(-) diff --git a/opentrack/main-window.ui b/opentrack/main-window.ui index 0ec5b5ab..af3234c5 100644 --- a/opentrack/main-window.ui +++ b/opentrack/main-window.ui @@ -7,16 +7,22 @@ 0 0 - 818 - 567 + 649 + 511 - + 0 0 + + + 0 + 500 + + :/images/opentrack.png:/images/opentrack.png @@ -50,6 +56,12 @@ + + + 0 + 0 + + QFrame::NoFrame @@ -77,6 +89,24 @@ + + + 0 + 0 + + + + + 0 + 240 + + + + + 640 + 16777215 + + 0 @@ -201,7 +231,7 @@ - + 0 0 @@ -220,7 +250,7 @@ - + 0 0 @@ -250,11 +280,17 @@ - + 0 0 + + + 316 + 0 + + Raw tracker data @@ -574,11 +610,17 @@ - + 0 0 + + + 316 + 0 + + Game data @@ -901,11 +943,17 @@ - + 0 0 + + + 16777215 + 180 + + 6 @@ -925,14 +973,14 @@ - + 4 0 - 400 + 315 0 @@ -958,7 +1006,7 @@ - + 0 0 @@ -1018,6 +1066,12 @@ 0 + + + 245 + 0 + + Qt::StrongFocus @@ -1032,7 +1086,7 @@ - + 0 0 @@ -1055,7 +1109,7 @@ - + 0 0 @@ -1078,11 +1132,17 @@ - - 3 + + 4 0 + + + 0 + 0 + + Tracking @@ -1108,11 +1168,17 @@ - + 0 0 + + + 0 + 34 + + 75 @@ -1130,11 +1196,17 @@ false - + 0 0 + + + 0 + 34 + + 75 @@ -1155,14 +1227,14 @@ - - 4 + + 0 0 - 400 + 310 0 @@ -1190,6 +1262,12 @@ + + + 0 + 0 + + Input @@ -1259,6 +1337,12 @@ + + + 0 + 0 + + Output @@ -1328,6 +1412,12 @@ + + + 0 + 0 + + Filter 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