From 2e26abbd18df0ca9a62d604afd2476514d3c157b Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 26 Nov 2018 15:48:01 +0100 Subject: [PATCH] Revert "Allow accessing deviceName from qml" This reverts commit e47fb170061a7e996b0964577908e415ea7a5b94. It broke the name in various QML places because display was not available as a role any more. The ones inside KDE Connect were easily fixed, but Purpose is hard to fix in a fully compatible way --- interfaces/devicesmodel.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/interfaces/devicesmodel.cpp b/interfaces/devicesmodel.cpp index 53c2d3356..baafd3feb 100644 --- a/interfaces/devicesmodel.cpp +++ b/interfaces/devicesmodel.cpp @@ -70,7 +70,6 @@ DevicesModel::DevicesModel(QObject* parent) QHash< int, QByteArray > DevicesModel::roleNames() const { QHash names = QAbstractItemModel::roleNames(); - names.insert(NameModelRole, "deviceName"); names.insert(IdModelRole, "deviceId"); names.insert(IconNameRole, "iconName"); names.insert(DeviceRole, "device");