diff options
Diffstat (limited to 'plugins/translation/translation.h')
-rw-r--r-- | plugins/translation/translation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/translation/translation.h b/plugins/translation/translation.h index c2e411b..2648f74 100644 --- a/plugins/translation/translation.h +++ b/plugins/translation/translation.h @@ -41,6 +41,7 @@ class Translation : public QObject Q_OBJECT Q_PROPERTY(QString languageLocale READ languageLocale WRITE setLanguageLocale NOTIFY languageLocaleChanged) + Q_PROPERTY(QString emptyString READ emptyString NOTIFY languageChanged) public: explicit Translation(QObject *parent = nullptr); @@ -50,6 +51,9 @@ public: void setLanguageLocale(const QString &languageLocale); QString languageLocale() const; + // Helper method to notify string change + QString emptyString() const; + signals: void languageLocaleChanged(); void languageChanged(); |