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

@@ -67,6 +67,7 @@ namespace
class ColorWidget final : public QFrame
{
Q_DISABLE_COPY_MOVE(ColorWidget)
Q_DECLARE_TR_FUNCTIONS(ColorWidget)
public:
explicit ColorWidget(const QColor &currentColor, const QColor &defaultColor, QWidget *parent = nullptr)
@@ -140,6 +141,7 @@ private:
class IconWidget final : public QLabel
{
Q_DISABLE_COPY_MOVE(IconWidget)
Q_DECLARE_TR_FUNCTIONS(IconWidget)
public:
explicit IconWidget(const Path &currentPath, const Path &defaultPath, QWidget *parent = nullptr)