1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-19 20:22:56 +08:00

remove transString

This commit is contained in:
jared 2020-08-27 09:51:10 +08:00
parent 3cc40c44aa
commit 075dd9fe8c
2 changed files with 0 additions and 6 deletions

View File

@ -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();
}

View File

@ -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);