From 8c1c20e8c38b0067ab660f4dcbf6c6236b425026 Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 30 Aug 2021 23:43:56 +0800 Subject: [PATCH] Fix a compilation error in Qt5.14 --- model/placesitem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model/placesitem.cpp b/model/placesitem.cpp index fb6c127..4ee946e 100644 --- a/model/placesitem.cpp +++ b/model/placesitem.cpp @@ -115,7 +115,12 @@ void PlacesItem::updateDeviceInfo(const QString &udi) m_access = m_device.as(); m_iconName = m_device.icon(); m_iconPath = QString("%1.svg").arg(m_iconName); + +#if SOLID_BUILD_DEPRECATED_SINCE(5, 71) m_displayName = m_device.displayName(); +#elif + m_displayName = m_device.description(); +#endif if (m_access) { m_url = QUrl::fromLocalFile(m_access->filePath());