Fix incorrect usage of translation functions

PR #20107.
This commit is contained in:
Chocobo1
2023-12-10 23:07:29 +08:00
committed by GitHub
parent 88ef8a51dd
commit cc563d9f78
4 changed files with 67 additions and 59 deletions

View File

@@ -61,6 +61,8 @@ public:
class DefaultThemeSource final : public UIThemeSource
{
Q_DECLARE_TR_FUNCTIONS(DefaultThemeSource)
public:
DefaultThemeSource();
@@ -78,6 +80,8 @@ private:
class CustomThemeSource : public UIThemeSource
{
Q_DECLARE_TR_FUNCTIONS(CustomThemeSource)
public:
QColor getColor(const QString &colorId, ColorMode colorMode) const override;
Path getIconPath(const QString &iconId, ColorMode colorMode) const override;