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());
default:
return QVariant();
}
......
......@@ -44,7 +44,8 @@ public:
IconModelRole = Qt::DecorationRole,
StatusModelRole = Qt::InitialSortOrderRole,
IdModelRole = Qt::UserRole,
IconNameRole
IconNameRole,
IsPairedRole
};
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