mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: geom backend compatibility bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9cd0bdebd1
commit
88a0ac1938
1 changed files with 5 additions and 0 deletions
|
@ -129,10 +129,15 @@ QString GeomDevice::udi() const
|
|||
|
||||
QString GeomDevice::parentUdi() const
|
||||
{
|
||||
#warning TODO: compatibility bits, see warning in kdelibs/solid/solid/backends/udev/udevdevice.cpp
|
||||
#if 0
|
||||
if (m_parent.isEmpty()) {
|
||||
return QString(GEOM_ROOT_UDI);
|
||||
}
|
||||
return QString::fromLatin1("%1/%2").arg(GEOM_UDI_PREFIX, m_parent.constData());
|
||||
#else
|
||||
return QString::fromLatin1("%1/%2").arg(GEOM_UDI_PREFIX, m_realdevice.constData());
|
||||
#endif
|
||||
}
|
||||
|
||||
QString GeomDevice::vendor() const
|
||||
|
|
Loading…
Add table
Reference in a new issue