summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.cpp
diff options
context:
space:
mode:
authorIoannis Christoforidis2019-12-04 19:43:57 +0100
committerIoannis Christoforidis2019-12-04 19:51:49 +0100
commita85d0b4ba12d185f103f24f1bfd80e2c65c6753a (patch)
treec82e137207420c650952e00ef018da87ab25e0f7 /src/speedcheck.cpp
parentcheck if connection is wired or not and disable link speed if it is (diff)
downloadspeedcheck-a85d0b4ba12d185f103f24f1bfd80e2c65c6753a.tar.gz
speedcheck-a85d0b4ba12d185f103f24f1bfd80e2c65c6753a.tar.xz
speedcheck-a85d0b4ba12d185f103f24f1bfd80e2c65c6753a.zip
add info box of connection type
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r--src/speedcheck.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp
index 2151953..1ad46c9 100644
--- a/src/speedcheck.cpp
+++ b/src/speedcheck.cpp
@@ -115,6 +115,7 @@ void SpeedCheck::updateNetworkInfos(int) {
QMessageBox::warning(NULL, "Warning","Link Speed Slow");
_ui->networkSpeed->setStyleSheet("QLabel {color:orange;}");
_ui->networkSpeed->setToolTip("Networkspeed slow!");
+ _ui->connType->setText("wired");
}
_ui->networkSpeed->setText(speed + " MB/s");
}
@@ -122,6 +123,7 @@ void SpeedCheck::updateNetworkInfos(int) {
_ui->networkSpeed->setDisabled(true);
_ui->networkSpeed->setText("");
_ui->link->setText("");
+ _ui->connType->setText("wireless");
}
}
void SpeedCheck::updateTimer()