mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: implement Solid::Graphic::driver() for fake/testing backend
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
52c0d22c92
commit
ed06b22e60
3 changed files with 10 additions and 2 deletions
|
@ -667,5 +667,6 @@
|
|||
<property key="product">GK107 [GeForce GT 640]</property>
|
||||
<property key="vendor">NVIDIA Corporation</property>
|
||||
<property key="parent">/org/kde/solid/fakehw/computer</property>
|
||||
<property key="driver">nouveau</property>
|
||||
</device>
|
||||
</machine>
|
||||
|
|
|
@ -25,11 +25,15 @@ using namespace Solid::Backends::Fake;
|
|||
FakeGraphic::FakeGraphic(FakeDevice *device)
|
||||
: FakeDeviceInterface(device)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
FakeGraphic::~FakeGraphic()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QString FakeGraphic::driver() const
|
||||
{
|
||||
return fakeDevice()->property("driver").toString();
|
||||
}
|
||||
|
||||
#include "backends/fakehw/moc_fakegraphic.cpp"
|
||||
|
|
|
@ -38,6 +38,9 @@ class FakeGraphic : public FakeDeviceInterface, virtual public Solid::Ifaces::Gr
|
|||
public:
|
||||
explicit FakeGraphic(FakeDevice *device);
|
||||
~FakeGraphic();
|
||||
|
||||
public Q_SLOTS:
|
||||
virtual QString driver() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue