From 2634067727046d48b9c01396fe8b95a138126b53 Mon Sep 17 00:00:00 2001 From: cranphin Date: Thu, 9 Sep 2010 19:56:16 +0000 Subject: [PATCH] This should scale a bit better again, hopefully :) more coming! git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1571 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../plugins/gpsdisplay/gpsdisplaywidget.cpp | 6 +- .../plugins/gpsdisplay/gpsdisplaywidget.ui | 346 ++++++++++++++++-- 2 files changed, 321 insertions(+), 31 deletions(-) diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp index d13ccfde7..d7b4f6c9b 100644 --- a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp +++ b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.cpp @@ -62,12 +62,8 @@ GpsDisplayWidget::~GpsDisplayWidget() void GpsDisplayWidget::setSpeedHeading(double speed, double heading) { QString str; - str.sprintf("%.02f m/s",speed); - speed_value->setText(str); - speed_value->adjustSize(); + speed_value->setText(str.sprintf("%.02f m/s",speed)); bear_value->setText(str.sprintf("%.02f deg",heading)); - bear_value->adjustSize(); - } void GpsDisplayWidget::setDateTime(double date, double time) diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui index 568c78fc0..c519bcbd0 100644 --- a/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui +++ b/ground/src/plugins/gpsdisplay/gpsdisplaywidget.ui @@ -27,9 +27,15 @@ - + + + 0 + - + + + 0 + @@ -37,6 +43,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -44,6 +66,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -51,6 +89,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -61,7 +115,26 @@ - + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 6 + + + + + + + + 0 + @@ -69,13 +142,48 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + Unknown + + true + + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -83,6 +191,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -92,6 +216,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 4 + + + + @@ -100,7 +240,23 @@ - + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 4 + + + + + + @@ -108,6 +264,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -117,6 +289,22 @@ + + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 4 + + + + @@ -125,7 +313,26 @@ - + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 4 + + + + + + + + 0 + @@ -133,6 +340,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -143,7 +366,26 @@ - + + + Qt::Vertical + + + QSizePolicy::Preferred + + + + 20 + 6 + + + + + + + + 0 + @@ -151,6 +393,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -158,6 +416,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 6 + 0 + + + + @@ -189,18 +463,6 @@ - - - 0 - 0 - - - - - 64 - 64 - - 250 @@ -236,7 +498,26 @@ - + + + 0 + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 6 + 20 + + + + @@ -258,10 +539,7 @@ QFrame::Raised - - 0 - - + 0 @@ -282,16 +560,16 @@ - + Qt::Horizontal - QSizePolicy::Ignored + QSizePolicy::Preferred - 40 + 6 20 @@ -328,6 +606,22 @@ + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 6 + 20 + + + +