diff --git a/ground/gcs/src/plugins/config/configsparky2hwwidget.cpp b/ground/gcs/src/plugins/config/configsparky2hwwidget.cpp index 9d80309ca..bb98db062 100644 --- a/ground/gcs/src/plugins/config/configsparky2hwwidget.cpp +++ b/ground/gcs/src/plugins/config/configsparky2hwwidget.cpp @@ -38,6 +38,11 @@ ConfigSparky2HWWidget::ConfigSparky2HWWidget(QWidget *parent) : ConfigTaskWidget m_ui = new Ui_Sparky2HWWidget(); m_ui->setupUi(this); + m_ui->boardImg->load(QString(":/configgadget/images/sparky2.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("Sparky2+Configuration"); diff --git a/ground/gcs/src/plugins/config/configsparky2hwwidget.ui b/ground/gcs/src/plugins/config/configsparky2hwwidget.ui index 0a27b10eb..fc902ab89 100644 --- a/ground/gcs/src/plugins/config/configsparky2hwwidget.ui +++ b/ground/gcs/src/plugins/config/configsparky2hwwidget.ui @@ -121,9 +121,9 @@ 0 - 0 - 796 - 731 + -184 + 798 + 838 @@ -232,122 +232,27 @@ - - - + + + + + + + + + + - - - - - - - Qt::Horizontal - - - - 80 - 10 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 120 - 10 - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 120 - 10 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 70 - 10 - - - - - - + + - I2C (under) + Radio Aux Stream Qt::AlignBottom|Qt::AlignHCenter - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 120 - 10 - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 50 - 10 - - - - @@ -381,10 +286,59 @@ - - + + - + + + + Receiver Port + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 120 + 10 + + + + + + + + Qt::Horizontal + + + + 80 + 10 + + + + + + + + Flexi Port + + + Qt::AlignBottom|Qt::AlignHCenter + + + + @@ -400,7 +354,110 @@ - + + + + Qt::Horizontal + + + QSizePolicy::Minimum + + + + 120 + 10 + + + + + + + + Main Port + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + + + + + + + + + + + + I2C (under) + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + 0 + 0 + + + + + 160000 + 160000 + + + + + + + + Protocol + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + + + + + + Protocol + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + + + + Speed + + + Qt::AlignBottom|Qt::AlignHCenter + + + + @@ -416,130 +473,69 @@ - - - - - 0 - 0 - + + + + Qt::Horizontal - + + QSizePolicy::MinimumExpanding + + - 350 - 350 + 0 + 20 - - - - - :/configgadget/images/sparky2_top.png - - - false - - - Qt::AlignCenter - - - Qt::NoTextInteraction - - + - - - - Receiver Port + + + + Qt::Horizontal - - Qt::AlignBottom|Qt::AlignHCenter + + QSizePolicy::Minimum - + + + 120 + 10 + + + - - - - - Radio Aux Stream - - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - - - - - Flexi Port - - - Qt::AlignBottom|Qt::AlignHCenter - - - - + - - - - - - - - - + + + + Qt::Vertical + + + + 20 + 0 + + + - - - - Speed + + + + Qt::Vertical - - Qt::AlignBottom|Qt::AlignHCenter + + QSizePolicy::Fixed - - - - - - Protocol + + + 20 + 100 + - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - Protocol - - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - - - - - - - Main Port - - - Qt::AlignBottom|Qt::AlignHCenter - - + @@ -754,6 +750,13 @@ Beware of not locking yourself out! + + + QSvgWidget + QWidget +
qsvgwidget.h
+
+