mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 13:55:50 +00:00
massive refactoring
This commit is contained in:
@ -52,7 +52,7 @@ void TestBatterySource::test_battery()
|
||||
std::for_each(batteries.begin(), batteries.end(),
|
||||
[this](const QString bat) {
|
||||
QVariant value = source->data(bat);
|
||||
if (bat == QString("battery/ac"))
|
||||
if (bat == "battery/ac")
|
||||
QCOMPARE(value.type(), QVariant::Bool);
|
||||
else
|
||||
QVERIFY((value.toFloat() >= battery.first)
|
||||
|
Reference in New Issue
Block a user