1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +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:
sambas 2010-08-08 06:30:25 +00:00 committed by sambas
parent f74c6ffdd5
commit 431581b73b
2 changed files with 8 additions and 18 deletions

View File

@ -91,20 +91,22 @@ GpsDisplayWidget::~GpsDisplayWidget()
void GpsDisplayWidget::setSVs(int sv)
{
QString temp = "FIX: ";
QString temp = "Fix: Sats: ";
temp.append(QString::number(sv));
widget->label_2->setText(temp);
widget->label_2->adjustSize();
}
void GpsDisplayWidget::setPosition(double lat, double lon, double alt)
{
QString temp = "Position: ";
temp.append(QString::number(lat));
temp.append(QString::number(lat,'g',10));
temp.append(" ");
temp.append(QString::number(lon));
temp.append(QString::number(lon,'g',10));
temp.append(" ");
temp.append(QString::number(alt));
temp.append(QString::number(alt,'g',10));
widget->label->setText(temp);
widget->label->adjustSize();
widget->textBrowser->append(temp);
}

View File

@ -37,14 +37,8 @@
<height>16</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Position: </string>
<string>Position:</string>
</property>
<property name="indent">
<number>-1</number>
@ -59,14 +53,8 @@
<height>16</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Fix: </string>
<string>Fix:</string>
</property>
</widget>
<widget class="QLabel" name="label_3">