--- a/cadMousePro-gui/src/MouseMainWindow.cpp Tue Sep 03 19:15:51 2019 +0200
+++ b/cadMousePro-gui/src/MouseMainWindow.cpp Tue Sep 03 23:55:00 2019 +0200
@@ -42,10 +42,12 @@
statusProxy->setEnabled(false);
statusUPower->setEnabled(false);
statusDevice->setEnabled(false);
+ statusName->setToolTip("name of the USB device – usually the wireless adaptor");
layout->setWidget(f++, QFormLayout::FieldRole, statusProxy);
layout->setWidget(f++, QFormLayout::FieldRole, statusUPower);
layout->setWidget(f++, QFormLayout::FieldRole, statusDevice);
+ layout->setWidget(f++, QFormLayout::FieldRole, statusName);
QPushButton* refreshButton = new QPushButton("Refresh", panel);
layout->setWidget(f++, QFormLayout::FieldRole, refreshButton);
@@ -108,7 +110,7 @@
void MouseMainWindow::refresh() {
statusProxy->setChecked(proxy->isValid());
statusDevice->setChecked(proxy->devicePresent());
-
+ statusName->setText(proxy->deviceName());
}
void MouseMainWindow::configure() {
--- a/cadMousePro-gui/src/MouseMainWindow.h Tue Sep 03 19:15:51 2019 +0200
+++ b/cadMousePro-gui/src/MouseMainWindow.h Tue Sep 03 23:55:00 2019 +0200
@@ -24,6 +24,7 @@
#include <QRadioButton>
#include <QButtonGroup>
#include <QLineEdit>
+#include <QLabel>
#include <QtDBus/QDBusConnection>
#include "generated-sources/Proxy.h"
@@ -41,6 +42,7 @@
QCheckBox* statusProxy = new QCheckBox("connected to Daemon", this);
QCheckBox* statusUPower = new QCheckBox("connected to UPower", this);
QCheckBox* statusDevice = new QCheckBox("mouse found", this);
+ QLabel* statusName = new QLabel(this);
QCheckBox* configureSmartScrolling = new QCheckBox("smart scrolling (free wheel)", this);
QCheckBox* configureLiftOffDetection = new QCheckBox("lift-off detection", this);