Fix solid 5.71

This commit is contained in:
reionwong 2021-08-31 00:06:28 +08:00
parent 9811e89459
commit da50d4f27d

View file

@ -20,6 +20,8 @@
#include "placesitem.h"
#include <QDebug>
#include <solid_version.h>
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();