mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
fix lambda related code
This commit is contained in:
parent
ce30d90a23
commit
4bba061d66
@ -28,7 +28,7 @@ QString AWPatternFunctions::expandLambdas(QString _code, AWKeysAggregator *_aggr
|
|||||||
const QVariantHash &_metadata,
|
const QVariantHash &_metadata,
|
||||||
const QStringList &_usedKeys)
|
const QStringList &_usedKeys)
|
||||||
{
|
{
|
||||||
qCDebug(LOG_AW) << "Expand lamdas in" << _code;
|
qCDebug(LOG_AW) << "Expand lambdas in" << _code;
|
||||||
|
|
||||||
QJSEngine engine;
|
QJSEngine engine;
|
||||||
// apply $this values
|
// apply $this values
|
||||||
|
@ -397,11 +397,11 @@ void GraphicalItem::setUsedKeys(const QStringList &_usedKeys)
|
|||||||
|
|
||||||
// remove dubs
|
// remove dubs
|
||||||
// HACK converting to set may break order
|
// HACK converting to set may break order
|
||||||
usedKeys().clear();
|
m_usedKeys.clear();
|
||||||
for (auto &key : _usedKeys) {
|
for (auto &key : _usedKeys) {
|
||||||
if (usedKeys().contains(key))
|
if (m_usedKeys.contains(key))
|
||||||
continue;
|
continue;
|
||||||
usedKeys().append(key);
|
m_usedKeys.append(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ void TestAWKeys::test_dbus()
|
|||||||
|
|
||||||
// check if there is active sessions first
|
// check if there is active sessions first
|
||||||
QDBusMessage sessions = QDBusMessage::createMethodCall(AWDBUS_SERVICE, AWDBUS_PATH,
|
QDBusMessage sessions = QDBusMessage::createMethodCall(AWDBUS_SERVICE, AWDBUS_PATH,
|
||||||
AWDBUS_SERVICE, "ActiveServicess");
|
AWDBUS_SERVICE, "ActiveServices");
|
||||||
QDBusMessage sessionsResponse = bus.call(sessions, QDBus::BlockWithGui);
|
QDBusMessage sessionsResponse = bus.call(sessions, QDBus::BlockWithGui);
|
||||||
if (sessionsResponse.arguments().isEmpty())
|
if (sessionsResponse.arguments().isEmpty())
|
||||||
QSKIP("No active sessions found, skip DBus tests");
|
QSKIP("No active sessions found, skip DBus tests");
|
||||||
|
Loading…
Reference in New Issue
Block a user