mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
GCS/gpsdisplay: static text output fix
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1242 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
f74c6ffdd5
commit
431581b73b
@ -91,20 +91,22 @@ GpsDisplayWidget::~GpsDisplayWidget()
|
|||||||
|
|
||||||
void GpsDisplayWidget::setSVs(int sv)
|
void GpsDisplayWidget::setSVs(int sv)
|
||||||
{
|
{
|
||||||
QString temp = "FIX: ";
|
QString temp = "Fix: Sats: ";
|
||||||
temp.append(QString::number(sv));
|
temp.append(QString::number(sv));
|
||||||
widget->label_2->setText(temp);
|
widget->label_2->setText(temp);
|
||||||
|
widget->label_2->adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GpsDisplayWidget::setPosition(double lat, double lon, double alt)
|
void GpsDisplayWidget::setPosition(double lat, double lon, double alt)
|
||||||
{
|
{
|
||||||
QString temp = "Position: ";
|
QString temp = "Position: ";
|
||||||
temp.append(QString::number(lat));
|
temp.append(QString::number(lat,'g',10));
|
||||||
temp.append(" ");
|
temp.append(" ");
|
||||||
temp.append(QString::number(lon));
|
temp.append(QString::number(lon,'g',10));
|
||||||
temp.append(" ");
|
temp.append(" ");
|
||||||
temp.append(QString::number(alt));
|
temp.append(QString::number(alt,'g',10));
|
||||||
widget->label->setText(temp);
|
widget->label->setText(temp);
|
||||||
|
widget->label->adjustSize();
|
||||||
widget->textBrowser->append(temp);
|
widget->textBrowser->append(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,14 +37,8 @@
|
|||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Position: </string>
|
<string>Position:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="indent">
|
<property name="indent">
|
||||||
<number>-1</number>
|
<number>-1</number>
|
||||||
@ -59,14 +53,8 @@
|
|||||||
<height>16</height>
|
<height>16</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Fix: </string>
|
<string>Fix:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user