forked from torriem/QtAgOpenGPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoplinedisplay.cpp
36 lines (28 loc) · 1 KB
/
toplinedisplay.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "toplinedisplay.h"
#include <QBoxLayout>
#include <QLabel>
TopLineDisplay::TopLineDisplay(QWidget *parent) : QWidget(parent)
{
QWidget *thisWidget = dynamic_cast<QWidget *>(this);
box = new QBoxLayout(QBoxLayout::LeftToRight,thisWidget);
lblSpeed = new QLabel(thisWidget);
lblSpeed->setText("Speed");
txtDistanceOffABLine = new QLabel(thisWidget);
txtDistanceOffABLine->setText("0000000");
lblSteerAngle = new QLabel(thisWidget);
lblSteerAngle->setText("Ang");
lblHeading = new QLabel(thisWidget);
lblHeading->setText("Dir");
lblEasting = new QLabel(thisWidget);
lblNorthing = new QLabel(thisWidget);
lblZone = new QLabel(thisWidget);
box->addWidget(lblSpeed);
//box->addWidget(txtDistanceOffABLine,1,Qt::AlignCenter);
box->addWidget(txtDistanceOffABLine);
box->addWidget(lblSteerAngle);
box->addWidget(lblHeading);
box->addWidget(lblEasting);
box->addWidget(lblNorthing);
box->addWidget(lblZone);
this->setLayout(box);
}