mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-94 Revo Attitude tab : Add help link to wiki page.
This commit is contained in:
parent
e9d29cb0c1
commit
400af92fd8
@ -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));
|
||||
}
|
||||
|
@ -88,6 +88,7 @@ private slots:
|
||||
void enableAllCalibrations();
|
||||
|
||||
void updateVisualHelp();
|
||||
void openHelp();
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user