SMS app shows devices with SMS capabilities only
Replaced DevicesSortProxyModel with DevicesPluginFilterProxyModel with applied "kdeconnect_sms" filter for the devices list model. BUG: 410112
This commit is contained in:
parent
b76fe488b9
commit
f82d15ce1e
2 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
|
#include <devicespluginfilterproxymodel.h>
|
||||||
|
|
||||||
#include "objectfactory.h"
|
#include "objectfactory.h"
|
||||||
#include "responsewaiter.h"
|
#include "responsewaiter.h"
|
||||||
|
@ -51,6 +52,7 @@ void KdeConnectDeclarativePlugin::registerTypes(const char *uri)
|
||||||
qmlRegisterType<RemoteCommandsModel>(uri, 1, 0, "RemoteCommandsModel");
|
qmlRegisterType<RemoteCommandsModel>(uri, 1, 0, "RemoteCommandsModel");
|
||||||
qmlRegisterType<DBusAsyncResponse>(uri, 1, 0, "DBusAsyncResponse");
|
qmlRegisterType<DBusAsyncResponse>(uri, 1, 0, "DBusAsyncResponse");
|
||||||
qmlRegisterType<DevicesSortProxyModel>(uri, 1, 0, "DevicesSortProxyModel");
|
qmlRegisterType<DevicesSortProxyModel>(uri, 1, 0, "DevicesSortProxyModel");
|
||||||
|
qmlRegisterType<DevicesPluginFilterProxyModel>(uri, 1, 0, "DevicesPluginFilterProxyModel");
|
||||||
qmlRegisterType<RemoteSinksModel>(uri, 1, 0, "RemoteSinksModel");
|
qmlRegisterType<RemoteSinksModel>(uri, 1, 0, "RemoteSinksModel");
|
||||||
qmlRegisterType<PluginModel>(uri, 1, 0, "PluginModel");
|
qmlRegisterType<PluginModel>(uri, 1, 0, "PluginModel");
|
||||||
qmlRegisterType<KdeConnectPluginConfig>(uri, 1, 0, "KdeConnectPluginConfig");
|
qmlRegisterType<KdeConnectPluginConfig>(uri, 1, 0, "KdeConnectPluginConfig");
|
||||||
|
|
|
@ -40,9 +40,9 @@ Kirigami.ApplicationWindow
|
||||||
Instantiator {
|
Instantiator {
|
||||||
id: instantiator
|
id: instantiator
|
||||||
|
|
||||||
model: DevicesSortProxyModel {
|
model: DevicesPluginFilterProxyModel {
|
||||||
id: devicesModel
|
id: devicesModel
|
||||||
//TODO: make it possible to filter if they can do sms
|
pluginFilter: "kdeconnect_sms"
|
||||||
sourceModel: DevicesModel { displayFilter: DevicesModel.Paired | DevicesModel.Reachable }
|
sourceModel: DevicesModel { displayFilter: DevicesModel.Paired | DevicesModel.Reachable }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue