Get All Devices
This commit is contained in:
parent
82c7ece541
commit
a17054cadc
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
||||||
#include "solid-test.h"
|
#include "solid-test.h"
|
||||||
|
|
||||||
void SolidTest::listDevices() {
|
void SolidTest::listDevices() {
|
||||||
const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
|
// const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
|
||||||
for(const Solid::Device &device : devices) {
|
for(const Solid::Device &device : Solid::Device::allDevices()) {
|
||||||
// print the name of device
|
// print the name of device
|
||||||
qInfo() << device.udi();
|
qInfo() << device.udi();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue