summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r--src/speedcheck.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp
index f26bb1e..344be46 100644
--- a/src/speedcheck.cpp
+++ b/src/speedcheck.cpp
@@ -11,6 +11,7 @@
#include <QFileDialog>
#include <QDebug>
#include <QTimer>
+#include "addserver.h"
SpeedCheck::SpeedCheck(QString fileName, bool cml)
: _ui(new Ui::MainWindow),
@@ -24,6 +25,7 @@ SpeedCheck::SpeedCheck(QString fileName, bool cml)
connect(_ui->btnselect, SIGNAL(clicked(bool)), this, SLOT(selectClicked(bool)));
connect(_ui->btnrefreshNetwork, SIGNAL(clicked(bool)), this, SLOT(networkrefreshClicked(bool)));
connect(_ui->comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(updateNetworkInfos(int)));
+ connect(_ui-> actionAdd_Server, SIGNAL(triggered(bool)), this, SLOT(addServerClicked(bool)));
_ui->filelabel->setText("Selected File: " + _fileName);
_timer.setInterval(200);
connect(&_timer, SIGNAL(timeout()), this, SLOT(updateTimer()));
@@ -90,6 +92,7 @@ void SpeedCheck::testFinished()
_ui->comboBox->setEnabled(true);
_ui->btnrefreshNetwork->setEnabled(true);
quitClicked(true);
+ // TODO start next test if available
}
void SpeedCheck::networkrefreshClicked(bool)
{
@@ -139,3 +142,8 @@ void SpeedCheck::updateTimer()
_ui->picCpu->readNextValue();
_ui->picSpeed->readNextValue();
}
+void SpeedCheck::addServerClicked(bool) {
+ QWidget *wdg = new AddServer();
+ wdg->show();
+ logMessage("Hi");
+}