diff --git a/model/placesitem.cpp b/model/placesitem.cpp index 2bc0485..f4f2717 100644 --- a/model/placesitem.cpp +++ b/model/placesitem.cpp @@ -20,6 +20,8 @@ #include "placesitem.h" #include +#include + PlacesItem::PlacesItem(const QString &displayName, QUrl url, QObject *parent) @@ -116,7 +118,7 @@ void PlacesItem::updateDeviceInfo(const QString &udi) m_iconName = m_device.icon(); m_iconPath = QString("%1.svg").arg(m_iconName); -#if SOLID_ENABLE_DEPRECATED_SINCE(5, 71) +#if SOLID_VERSION_MAJOR >= 5 && SOLID_VERSION_MINOR >= 71 m_displayName = m_device.displayName(); #elif m_displayName = m_device.description();