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"
|
||||
|
||||
void SolidTest::listDevices() {
|
||||
const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
|
||||
for(const Solid::Device &device : devices) {
|
||||
// const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Unknown, QString());
|
||||
for(const Solid::Device &device : Solid::Device::allDevices()) {
|
||||
// print the name of device
|
||||
qInfo() << device.udi();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue