Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSysGuard
Commits
721318e9
Commit
721318e9
authored
Oct 07, 2020
by
Arjen Hiemstra
Browse files
Make GpuDevice::update non-pure virtual
Because Nvidia devices don't need the update.
parent
27abbf16
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/global/gpu/GpuDevice.cpp
View file @
721318e9
...
...
@@ -49,7 +49,10 @@ void GpuDevice::initialize()
m_temperatureProperty
->
setName
(
i18nc
(
"@title"
,
"Temperature"
));
m_temperatureProperty
->
setPrefix
(
name
());
m_temperatureProperty
->
setUnit
(
KSysGuard
::
UnitCelsius
);
}
void
GpuDevice
::
update
()
{
}
void
GpuDevice
::
makeSensors
()
...
...
plugins/global/gpu/GpuDevice.h
View file @
721318e9
...
...
@@ -19,7 +19,7 @@ public:
~
GpuDevice
()
override
=
default
;
virtual
void
initialize
();
virtual
void
update
()
=
0
;
virtual
void
update
();
protected:
virtual
void
makeSensors
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment