Skip to content
Commit bb974d5c authored by Bharadwaj Raju's avatar Bharadwaj Raju Committed by Nicolas Fella
Browse files

Use QDBusVariant::variant() instead of QVariant::fromValue()

The former produces a QVariant of the type that QDBusVariant held, while
the latter produces a QVariant of type QDBusVariant itself. This affects
our return type according to DBus.

Simple test:

```cpp
auto x = QVariant::fromValue(readFdoColorScheme());
auto y = readFdoColorScheme().variant();
qDebug() << x.typeName() << y.typeName();
```

BUG: 476592
parent 68e287f7
Pipeline #523795 passed with stage
in 1 minute and 3 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment