plasma: add binding for KLocale::toLocale() method

requires e4a7b266fe5a266c76b00513314540b2172927d6 from kdelibs to function
properly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-18 19:33:03 +03:00
parent efe25546a1
commit ee10c1a6c3
2 changed files with 7 additions and 0 deletions

View file

@ -172,3 +172,8 @@ void Locale::reparseConfiguration()
{
m_locale->reparseConfiguration();
}
QLocale Locale::toLocale() const
{
return m_locale->toLocale();
}

View file

@ -135,6 +135,8 @@ public:
Q_INVOKABLE void reparseConfiguration();
Q_INVOKABLE QLocale toLocale() const;
private:
KLocale *m_locale;
};