summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIoannis Christoforidis2019-11-27 16:34:15 +0100
committerIoannis Christoforidis2019-11-27 16:34:15 +0100
commit8cbc5f8d453b8321b83e1e1f7cff9f627b714678 (patch)
tree85a2f95b093c55b69c079e6b21ce64cb99463079 /src
parentQt4 -> Qt5 (diff)
downloadspeedcheck-8cbc5f8d453b8321b83e1e1f7cff9f627b714678.tar.gz
speedcheck-8cbc5f8d453b8321b83e1e1f7cff9f627b714678.tar.xz
speedcheck-8cbc5f8d453b8321b83e1e1f7cff9f627b714678.zip
small Interface changes; make network interface changeable
Diffstat (limited to 'src')
-rw-r--r--src/datasource/networkspeed.h2
-rw-r--r--src/ui/speedcheck.ui23
2 files changed, 22 insertions, 3 deletions
diff --git a/src/datasource/networkspeed.h b/src/datasource/networkspeed.h
index 482f4cd..0259bad 100644
--- a/src/datasource/networkspeed.h
+++ b/src/datasource/networkspeed.h
@@ -7,7 +7,7 @@
class NetworkSpeed : public IDataSource {
public:
- NetworkSpeed();
+ NetworkSpeed(QString interface);
virtual ~NetworkSpeed();
virtual qint64 read();
diff --git a/src/ui/speedcheck.ui b/src/ui/speedcheck.ui
index 4e59fc1..b82c3d7 100644
--- a/src/ui/speedcheck.ui
+++ b/src/ui/speedcheck.ui
@@ -24,7 +24,17 @@
</sizepolicy>
</property>
<property name="text">
- <string>Network (100MBit / 1000GBit)</string>
+ <string>Network (100MBit / 1GBit)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="comboBox">
+ <property name="editable">
+ <bool>false</bool>
+ </property>
+ <property name="currentText">
+ <string/>
</property>
</widget>
</item>
@@ -83,7 +93,16 @@
<property name="spacing">
<number>3</number>
</property>
- <property name="margin">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
<number>0</number>
</property>
<item>