From ee10c1a6c3a2037421df7b4b0f4b190aecee9ed2 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 18 Aug 2023 19:33:03 +0300 Subject: [PATCH] plasma: add binding for KLocale::toLocale() method requires e4a7b266fe5a266c76b00513314540b2172927d6 from kdelibs to function properly Signed-off-by: Ivailo Monev --- plasma/declarativeimports/locale/locale.cpp | 5 +++++ plasma/declarativeimports/locale/locale_p.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/plasma/declarativeimports/locale/locale.cpp b/plasma/declarativeimports/locale/locale.cpp index 1aed56f0..34bf9089 100644 --- a/plasma/declarativeimports/locale/locale.cpp +++ b/plasma/declarativeimports/locale/locale.cpp @@ -172,3 +172,8 @@ void Locale::reparseConfiguration() { m_locale->reparseConfiguration(); } + +QLocale Locale::toLocale() const +{ + return m_locale->toLocale(); +} diff --git a/plasma/declarativeimports/locale/locale_p.h b/plasma/declarativeimports/locale/locale_p.h index b303c9a9..78dafe23 100644 --- a/plasma/declarativeimports/locale/locale_p.h +++ b/plasma/declarativeimports/locale/locale_p.h @@ -135,6 +135,8 @@ public: Q_INVOKABLE void reparseConfiguration(); + Q_INVOKABLE QLocale toLocale() const; + private: KLocale *m_locale; };