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