mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-19 20:22:56 +08:00
remove transString
This commit is contained in:
parent
3cc40c44aa
commit
075dd9fe8c
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user