From a17054cadc225e1151d2baa054b5a6f7e181e988 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 6 Jan 2024 15:28:55 +0100 Subject: [PATCH] Get All Devices --- src/solid-test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solid-test.cpp b/src/solid-test.cpp index 78e177f..c66123e 100644 --- a/src/solid-test.cpp +++ b/src/solid-test.cpp @@ -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(); }