From 5061f86e006f9e8c28fc0fb5556ecd994add95fb Mon Sep 17 00:00:00 2001 From: Laura Sebesta Date: Fri, 25 May 2012 11:45:28 +0300 Subject: [PATCH] Fixed scrolling issues in plugin by adding all elements to a parent QFrame widget, and then activating scrolling in configpipxtremewidget.cpp constructor. --- .../plugins/config/configpipxtremewidget.cpp | 5 + .../src/plugins/config/pipxtreme.ui | 203 +++++++++--------- 2 files changed, 112 insertions(+), 96 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp index f4d20fc5d..b810ebde9 100644 --- a/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configpipxtremewidget.cpp @@ -89,6 +89,11 @@ ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget timeOut = new QTimer(this); connect(timeOut, SIGNAL(timeout()),this,SLOT(disconnected())); + //Add scroll bar when necessary + QScrollArea *scroll = new QScrollArea; + scroll->setWidget(m_pipx->frame_3); + m_pipx->verticalLayout_3->addWidget(scroll); + // Request and update of the setting object. settingsUpdated = false; pipxSettingsObj->requestUpdate(); diff --git a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui index 06662e450..1326f2b35 100644 --- a/ground/openpilotgcs/src/plugins/config/pipxtreme.ui +++ b/ground/openpilotgcs/src/plugins/config/pipxtreme.ui @@ -7,7 +7,7 @@ 0 0 840 - 724 + 834 @@ -165,6 +165,12 @@ + + + 400 + 0 + + 75 @@ -374,7 +380,7 @@ - Frequency Step Size + Freq. Step Size Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -779,7 +785,7 @@ - Telemetry Port Configuration + Telemetry Port Config. Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -1105,13 +1111,13 @@ true - 0 + 0 - 1000000000 + 1000000000 - 100000 + 100000 @@ -1210,99 +1216,104 @@ + + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + true + + + + + + + + + + + + + + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Send settings to the board but do not save to the non-volatile memory + + + Apply + + + + + + + Send settings to the board and save to the non-volatile memory + + + Save + + + false + + + + + + + + frame_2 + groupBox + layoutWidget + layoutWidget_2 + graphicsView_Spectrum - - - - - - - - 0 - 0 - 0 - - - - - - - 0 - 0 - 0 - - - - - true - - - - - - - - - - - - - - - - - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Send settings to the board but do not save to the non-volatile memory - - - Apply - - - - - - - Send settings to the board and save to the non-volatile memory - - - Save - - - false - - - - - - -