Fix solid 5.71
This commit is contained in:
parent
9811e89459
commit
da50d4f27d
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue