From 740e9fa86fdb63ab92d139470927faa0299c23a8 Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Mon, 27 Nov 2017 21:44:33 +0100 Subject: [PATCH] LP-559 Update SPRacingF3evo HW page with vector picture --- .../config/configspracingf3evohwwidget.cpp | 5 + .../config/configspracingf3evohwwidget.ui | 288 ++++++++++-------- 2 files changed, 158 insertions(+), 135 deletions(-) diff --git a/ground/gcs/src/plugins/config/configspracingf3evohwwidget.cpp b/ground/gcs/src/plugins/config/configspracingf3evohwwidget.cpp index 93eda6884..7d582b2a6 100644 --- a/ground/gcs/src/plugins/config/configspracingf3evohwwidget.cpp +++ b/ground/gcs/src/plugins/config/configspracingf3evohwwidget.cpp @@ -38,6 +38,11 @@ ConfigSPRacingF3EVOHWWidget::ConfigSPRacingF3EVOHWWidget(QWidget *parent) : Conf m_ui = new Ui_SPRacingF3EVOHWWidget(); m_ui->setupUi(this); + m_ui->boardImg->load(QString(":/configgadget/images/spracingf3evo.svg")); + QSize picSize = m_ui->boardImg->sizeHint(); + picSize.scale(360, 360, Qt::KeepAspectRatio); + m_ui->boardImg->setFixedSize(picSize); + // must be done before auto binding ! setWikiURL("SPRacingF3EVO+Configuration"); diff --git a/ground/gcs/src/plugins/config/configspracingf3evohwwidget.ui b/ground/gcs/src/plugins/config/configspracingf3evohwwidget.ui index ce14082a9..02c33299e 100644 --- a/ground/gcs/src/plugins/config/configspracingf3evohwwidget.ui +++ b/ground/gcs/src/plugins/config/configspracingf3evohwwidget.ui @@ -6,8 +6,8 @@ 0 0 - 969 - 886 + 918 + 591 @@ -122,8 +122,8 @@ 0 0 - 939 - 786 + 896 + 503 @@ -147,7 +147,7 @@ 20 - 40 + 0 @@ -159,7 +159,7 @@ - 40 + 0 20 @@ -225,67 +225,30 @@ - 40 + 0 20 - - - + + + - + 0 0 - - - 350 - 350 - - - - - - - :/configgadget/images/spracingf3evo_top.png - - - false - - - Qt::AlignCenter - - - Qt::NoTextInteraction - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 10 - 20 - - - - - + - + Qt::Vertical @@ -296,12 +259,12 @@ 20 - 75 + 50 - + UART3 @@ -312,11 +275,14 @@ - + Qt::Vertical + + QSizePolicy::MinimumExpanding + 20 @@ -327,35 +293,82 @@ - - + + + + UART2 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + Qt::Horizontal + + + QSizePolicy::MinimumExpanding + + + + 6 + 10 + + + + + + + + + 0 + 0 + + - 20 - 80 + 0 + 0 + + + + + 160000 + 160000 - + + + + I2C1 + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 50 + 20 + + + + + - - - - - - - UART1 -(headers) - - - Qt::AlignCenter - - - - - - @@ -367,12 +380,52 @@ 20 - 75 + 50 + + + + UART1 +(headers) + + + Qt::AlignCenter + + + + + + + + + Qt::Vertical + + + QSizePolicy::MinimumExpanding + + + + 20 + 60 + + + + + + + + IR/LED + + + Qt::AlignCenter + + + + Qt::Vertical @@ -383,83 +436,43 @@ 20 - 35 + 25 - - - - IR/LED - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 60 - - - + + - - + + + + + 600 + 20 + + + + + + - Qt::Vertical + Qt::Horizontal QSizePolicy::Fixed - 20 - 20 + 35 + 10 - - - - UART2 - - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - I2C1 - - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - - 0 - 0 - - - - - + @@ -676,6 +689,11 @@ Beware of not locking yourself out! + + QSvgWidget + QWidget +
qsvgwidget.h
+
CommonHWSettingsWidget QWidget