mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
one more iteration to try to fix tests on travis
This commit is contained in:
@ -91,6 +91,12 @@ AWKeys::~AWKeys()
|
||||
}
|
||||
|
||||
|
||||
bool AWKeys::isDBusActive() const
|
||||
{
|
||||
return m_dbusActive;
|
||||
}
|
||||
|
||||
|
||||
void AWKeys::initDataAggregator(const QVariantMap tooltipParams)
|
||||
{
|
||||
qCDebug(LOG_AW) << "Tooltip parameters" << tooltipParams;
|
||||
@ -338,9 +344,13 @@ void AWKeys::createDBusInterface()
|
||||
qCWarning(LOG_AW) << "Could not register DBus service, last error"
|
||||
<< bus.lastError().message();
|
||||
if (!bus.registerObject(QString("/%1").arg(id), new AWDBusAdaptor(this),
|
||||
QDBusConnection::ExportAllContents))
|
||||
QDBusConnection::ExportAllContents)) {
|
||||
qCWarning(LOG_AW) << "Could not register DBus object, last error"
|
||||
<< bus.lastError().message();
|
||||
m_dbusActive = false;
|
||||
} else {
|
||||
m_dbusActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -39,6 +39,7 @@ class AWKeys : public QObject
|
||||
public:
|
||||
explicit AWKeys(QObject *parent = nullptr);
|
||||
virtual ~AWKeys();
|
||||
bool isDBusActive() const;
|
||||
Q_INVOKABLE void initDataAggregator(const QVariantMap tooltipParams);
|
||||
Q_INVOKABLE void initKeys(const QString currentPattern, const int interval,
|
||||
const int limit, const bool optimize);
|
||||
@ -86,6 +87,7 @@ private:
|
||||
AWKeyOperations *m_keyOperator = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
// variables
|
||||
bool m_dbusActive = false;
|
||||
QVariantMap m_tooltipParams;
|
||||
QStringList m_foundBars, m_foundKeys, m_foundLambdas, m_requiredKeys;
|
||||
QVariantHash m_values;
|
||||
|
Reference in New Issue
Block a user