From 075dd9fe8c36881ed0f80c6b78ea7bb94a72e180 Mon Sep 17 00:00:00 2001 From: jared Date: Thu, 27 Aug 2020 09:51:10 +0800 Subject: [PATCH] remove transString --- examples/TaoQuickShow/Src/Trans.cpp | 3 --- examples/TaoQuickShow/Src/Trans.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/examples/TaoQuickShow/Src/Trans.cpp b/examples/TaoQuickShow/Src/Trans.cpp index 2f74e16..ae8939c 100644 --- a/examples/TaoQuickShow/Src/Trans.cpp +++ b/examples/TaoQuickShow/Src/Trans.cpp @@ -61,7 +61,6 @@ void Trans::loadFolder(const QString& folder) setCurrentLang(cEnglisthStr); } emit folderLoaded(folder); - emit transStringChanged(); } bool Trans::load(QString& lang, const QString& filePath) @@ -128,7 +127,6 @@ void Trans::setCurrentLang(const QString& currentLang) m_currentLang = currentLang; emit currentLangChanged(m_currentLang); - emit transStringChanged(); } void Trans::setLanguages(const QStringList& languages) @@ -138,5 +136,4 @@ void Trans::setLanguages(const QStringList& languages) m_languages = languages; emit languagesChanged(m_languages); - emit transStringChanged(); } diff --git a/examples/TaoQuickShow/Src/Trans.h b/examples/TaoQuickShow/Src/Trans.h index 9d9a979..2979265 100644 --- a/examples/TaoQuickShow/Src/Trans.h +++ b/examples/TaoQuickShow/Src/Trans.h @@ -11,7 +11,6 @@ class Trans : public QTranslator, public TaoObject Q_OBJECT Q_PROPERTY(QString currentLang READ currentLang WRITE setCurrentLang NOTIFY currentLangChanged) Q_PROPERTY(QStringList languages READ languages NOTIFY languagesChanged) - Q_PROPERTY(QString transString READ transString NOTIFY transStringChanged) public: Trans(QObject *parent = nullptr); @@ -44,8 +43,6 @@ signals: void languagesChanged(const QStringList &languages); - void transStringChanged(); - void langLoaded(const QString &lang); void folderLoaded(const QString &folder);