Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit dc2f9c0f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Introduce a IsPaired role in the DevicesModel

Reviewed by Albert Vaca
parent 9ec74a88
......@@ -170,6 +170,8 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
case IconNameRole:
return device->iconName();
case IsPairedRole:
return QVariant::fromValue<bool>(device->isPaired());
return QVariant();
......@@ -44,7 +44,8 @@ public:
IconModelRole = Qt::DecorationRole,
StatusModelRole = Qt::InitialSortOrderRole,
IdModelRole = Qt::UserRole,
enum StatusFlags {
StatusUnknown = 0x00,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment