1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Merged in f5soh/librepilot/LP-94_Revo_Attitude_wiki_link (pull request #160)

LP-94 Revo Attitude tab : Add help link to wiki page.
This commit is contained in:
Philippe Renon 2016-01-24 13:55:52 +01:00
commit 85e2ff40f6
3 changed files with 11 additions and 6 deletions

View File

@ -193,6 +193,9 @@ ConfigRevoWidget::ConfigRevoWidget(QWidget *parent) :
addWidgetBinding("AttitudeSettings", "BoardRotation", m_ui->yawRotation, AttitudeSettings::BOARDROTATION_YAW);
addWidgetBinding("AttitudeSettings", "AccelTau", m_ui->accelTau);
// Connect the help button
connect(m_ui->attitudeHelp, SIGNAL(clicked()), this, SLOT(openHelp()));
populateWidgets();
enableAllCalibrations();
@ -447,3 +450,9 @@ void ConfigRevoWidget::enableAllCalibrations()
m_ui->gyroBiasStart->setEnabled(true);
m_ui->thermalBiasStart->setEnabled(true);
}
void ConfigRevoWidget::openHelp()
{
QDesktopServices::openUrl(QUrl(QString(WIKI_URL_ROOT) + QString("Revo+Attitude+Configuration"),
QUrl::StrictMode));
}

View File

@ -88,6 +88,7 @@ private slots:
void enableAllCalibrations();
void updateVisualHelp();
void openHelp();
protected:
void showEvent(QShowEvent *event);

View File

@ -1025,7 +1025,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QPushButton" name="Help">
<widget class="QPushButton" name="attitudeHelp">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -1065,11 +1065,6 @@ p, li { white-space: pre-wrap; }
<property name="flat">
<bool>true</bool>
</property>
<property name="objrelation" stdset="0">
<stringlist>
<string>button:help</string>
</stringlist>
</property>
</widget>
</item>
<item>