1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-39 Adding label to indicate when leveling is done in a more clear way.

This commit is contained in:
Fredrik Arvidsson 2012-09-30 14:41:58 +02:00
parent ede0c2ebf9
commit eed564a3c4
2 changed files with 22 additions and 1 deletions

View File

@ -80,6 +80,8 @@ void LevellingPage::performLevelling()
}
enableButtons(false);
ui->progressLabel->setText(QString(tr("Retrieving data...")));
if(!m_levellingUtil)
{
@ -128,6 +130,7 @@ void LevellingPage::stopLevelling()
disconnect(m_levellingUtil, SIGNAL(progress(long,long)), this, SLOT(levellingProgress(long,long)));
disconnect(m_levellingUtil, SIGNAL(done(accelGyroBias)), this, SLOT(levellingDone(accelGyroBias)));
disconnect(m_levellingUtil, SIGNAL(timeout(QString)), this, SLOT(levellingTimeout(QString)));
ui->progressLabel->setText(QString(tr("<font color='green'>Done!</font>")));
enableButtons(true);
}
}

View File

@ -44,7 +44,7 @@ p, li { white-space: pre-wrap; }
<property name="geometry">
<rect>
<x>200</x>
<y>270</y>
<y>260</y>
<width>200</width>
<height>70</height>
</rect>
@ -98,6 +98,24 @@ QProgressBar::chunk {
<string/>
</property>
</widget>
<widget class="QLabel" name="progressLabel">
<property name="geometry">
<rect>
<x>42</x>
<y>330</y>
<width>511</width>
<height>16</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<resources>
<include location="../wizardResources.qrc"/>