sort plugins
This commit is contained in:
parent
2e3359331c
commit
1567e2d2a6
|
@ -123,19 +123,25 @@ const QHash<QString, Application> &SnoreCore::aplications() const
|
||||||
const QStringList SnoreCore::notificationBackends() const
|
const QStringList SnoreCore::notificationBackends() const
|
||||||
{
|
{
|
||||||
Q_D(const SnoreCore);
|
Q_D(const SnoreCore);
|
||||||
return d->m_plugins.values(SnorePlugin::BACKEND);
|
QStringList out(d->m_plugins.values(SnorePlugin::BACKEND));
|
||||||
|
qSort(out);
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QStringList SnoreCore::notificationFrontends() const
|
const QStringList SnoreCore::notificationFrontends() const
|
||||||
{
|
{
|
||||||
Q_D(const SnoreCore);
|
Q_D(const SnoreCore);
|
||||||
return d->m_plugins.values(SnorePlugin::FRONTEND);
|
QStringList out(d->m_plugins.values(SnorePlugin::FRONTEND));
|
||||||
|
qSort(out);
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QStringList SnoreCore::secondaryNotificationBackends() const
|
const QStringList SnoreCore::secondaryNotificationBackends() const
|
||||||
{
|
{
|
||||||
Q_D(const SnoreCore);
|
Q_D(const SnoreCore);
|
||||||
return d->m_plugins.values(SnorePlugin::SECONDARY_BACKEND);
|
QStringList out(d->m_plugins.values(SnorePlugin::SECONDARY_BACKEND));
|
||||||
|
qSort(out);
|
||||||
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SnoreCore::setPrimaryNotificationBackend ( const QString &backend )
|
bool SnoreCore::setPrimaryNotificationBackend ( const QString &backend )
|
||||||
|
|
Loading…
Reference in New Issue