plasma: mark Plasma::FrameSvg::prefix() as const

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-30 23:23:26 +03:00
parent 614724f90e
commit 78fa7ed2c6
2 changed files with 2 additions and 2 deletions

View file

@ -303,7 +303,7 @@ bool FrameSvg::hasElementPrefix(Plasma::Location location) const
} }
} }
QString FrameSvg::prefix() QString FrameSvg::prefix() const
{ {
if (d->prefix.isEmpty()) { if (d->prefix.isEmpty()) {
return d->prefix; return d->prefix;

View file

@ -207,7 +207,7 @@ class PLASMA_EXPORT FrameSvg : public Svg
* Returns the prefix for SVG elements of the FrameSvg * Returns the prefix for SVG elements of the FrameSvg
* @return the prefix * @return the prefix
*/ */
Q_INVOKABLE QString prefix(); Q_INVOKABLE QString prefix() const;
/** /**
* Returns a mask that tightly contains the fully opaque areas of the svg * Returns a mask that tightly contains the fully opaque areas of the svg