Fix NotificationListener Test

This commit is contained in:
Nicolas Fella 2018-08-03 02:40:34 +02:00
parent e4385042eb
commit 81cc275f5b
2 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,9 @@ Kirigami.ScrollablePage
property: "status" property: "status"
delegate: Kirigami.Heading { delegate: Kirigami.Heading {
level: 4 level: 4
background: Rectangle {
color: "#21be2b"
}
text: switch (parseInt(section)) text: switch (parseInt(section))
{ {
case DevicesModel.Paired: case DevicesModel.Paired:

View file

@ -185,7 +185,8 @@ void TestNotificationListener::testNotify()
plugin = new TestNotificationsPlugin(this, plugin = new TestNotificationsPlugin(this,
QVariantList({ QVariant::fromValue<Device*>(d), QVariantList({ QVariant::fromValue<Device*>(d),
"notifications_plugin", "notifications_plugin",
{"kdeconnect.notification"}})); {"kdeconnect.notification"},
"preferences-desktop-notification"}));
QVERIFY(plugin->getNotificationsListener()); QVERIFY(plugin->getNotificationsListener());
delete plugin->getNotificationsListener(); delete plugin->getNotificationsListener();