mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fix kwin definition again
This commit is contained in:
parent
53afc07457
commit
9c8dbdcb41
@ -94,8 +94,8 @@ YahooWeatherProvider::parseCurrent(const QVariantMap &json,
|
|||||||
values[QString("humidity%1").arg(number())]
|
values[QString("humidity%1").arg(number())]
|
||||||
= atmosphere[QString("humidity")].toInt();
|
= atmosphere[QString("humidity")].toInt();
|
||||||
// HACK temporary fix of invalid values on Yahoo! side
|
// HACK temporary fix of invalid values on Yahoo! side
|
||||||
values[QString("pressure%1").arg(number())]
|
values[QString("pressure%1").arg(number())] = static_cast<int>(
|
||||||
= static_cast<int>(atmosphere[QString("pressure")].toFloat() / 33.863753);
|
atmosphere[QString("pressure")].toFloat() / 33.863753);
|
||||||
|
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
@ -22,14 +22,14 @@
|
|||||||
#include <QEventLoop>
|
#include <QEventLoop>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
|
#include <QtTest>
|
||||||
|
|
||||||
|
|
||||||
bool AWTestLibrary::isKWinActive()
|
bool AWTestLibrary::isKWinActive()
|
||||||
{
|
{
|
||||||
QEventLoop loop;
|
QSignalSpy spy(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)));
|
||||||
loop.connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), SLOT(quit()));
|
|
||||||
KWindowSystem::setShowingDesktop(true);
|
KWindowSystem::setShowingDesktop(true);
|
||||||
loop.exec();
|
spy.wait(5000);
|
||||||
|
|
||||||
bool state = KWindowSystem::showingDesktop();
|
bool state = KWindowSystem::showingDesktop();
|
||||||
KWindowSystem::setShowingDesktop(false);
|
KWindowSystem::setShowingDesktop(false);
|
||||||
|
@ -106,7 +106,8 @@ void TestPlayerSource::test_mpd()
|
|||||||
if (secondValue[QString("player/title")].toString() == QString("unknown"))
|
if (secondValue[QString("player/title")].toString() == QString("unknown"))
|
||||||
QSKIP("No mpd found");
|
QSKIP("No mpd found");
|
||||||
|
|
||||||
QVERIFY(secondValue[QString("player/progress")].toInt() < secondValue[QString("player/duration")].toInt());
|
QVERIFY(secondValue[QString("player/progress")].toInt()
|
||||||
|
< secondValue[QString("player/duration")].toInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user