Commit d984564c authored by Lorenz Meier's avatar Lorenz Meier

Creating timer in appropriate location

parent 0529dafb
...@@ -49,6 +49,10 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), ...@@ -49,6 +49,10 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent),
uWidget(NULL), uWidget(NULL),
m_ui(new Ui::UASList) m_ui(new Ui::UASList)
{ {
// Use a timer to update the link health display.
updateTimer = new QTimer(this);
connect(updateTimer,SIGNAL(timeout()),this,SLOT(updateStatus()));
m_ui->setupUi(this); m_ui->setupUi(this);
m_ui->verticalLayout->setAlignment(Qt::AlignTop); m_ui->verticalLayout->setAlignment(Qt::AlignTop);
...@@ -72,10 +76,6 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent), ...@@ -72,10 +76,6 @@ UASListWidget::UASListWidget(QWidget *parent) : QWidget(parent),
{ {
addUAS(uas); addUAS(uas);
} }
// Use a timer to update the link health display.
updateTimer = new QTimer(this);
connect(updateTimer,SIGNAL(timeout()),this,SLOT(updateStatus()));
} }
UASListWidget::~UASListWidget() UASListWidget::~UASListWidget()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment