From da50d4f27d777b0550d1c38a5d0e738a47e19892 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 31 Aug 2021 00:06:28 +0800 Subject: [PATCH] Fix solid 5.71 --- model/placesitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();