From 6b0e9278c8b07e78ef12c2bc81fd3c19d45361fa Mon Sep 17 00:00:00 2001 From: chatlanin Date: Sat, 14 Nov 2026 09:12:36 +0300 Subject: [PATCH] fix utils warning --- cpp/utils/utils.hpp | 1 + qml/components/Title.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/utils/utils.hpp b/cpp/utils/utils.hpp index 4a4db12..d559167 100644 --- a/cpp/utils/utils.hpp +++ b/cpp/utils/utils.hpp @@ -7,6 +7,7 @@ class Utils : public QObject { Q_OBJECT + QML_ELEMENT QML_SINGLETON public: diff --git a/qml/components/Title.qml b/qml/components/Title.qml index ba4d11f..a50a60e 100644 --- a/qml/components/Title.qml +++ b/qml/components/Title.qml @@ -30,7 +30,7 @@ ColumnLayout { } Text { - text: "Можно обновить: " + Utils.packageLabel(root.packageCount) + text: "Можно обновить: " + Utils.declensionLabel(root.packageCount) Layout.fillWidth: true wrapMode: Text.WordWrap font.pixelSize: Theme.fontSize