diff options
author | Ioannis Christoforidis | 2021-04-05 22:44:52 +0200 |
---|---|---|
committer | Ioannis Christoforidis | 2021-04-05 22:44:52 +0200 |
commit | 5df17b16bba055275fb1e94ab6781e45aaf2051e (patch) | |
tree | 7c5ac334c34ee7bdc06577efb1b5d8c409f9c409 /src/speedcheck.cpp | |
parent | trivial console mode implemented (diff) | |
download | speedcheck-5df17b16bba055275fb1e94ab6781e45aaf2051e.tar.gz speedcheck-5df17b16bba055275fb1e94ab6781e45aaf2051e.tar.xz speedcheck-5df17b16bba055275fb1e94ab6781e45aaf2051e.zip |
add Dialogue to add new Test
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r-- | src/speedcheck.cpp | 8 |
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"); +} |