mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
26 lines
416 B
C++
26 lines
416 B
C++
#include "AppInfo.h"
|
|
#include "lang/En.h"
|
|
#include "lang/Zh.h"
|
|
|
|
|
|
AppInfo::AppInfo(QObject *parent)
|
|
: QObject{parent}
|
|
{
|
|
version("1.2.4");
|
|
changeLang("En");
|
|
}
|
|
|
|
void AppInfo::changeLang(const QString& locale){
|
|
if(_lang){
|
|
_lang->deleteLater();
|
|
}
|
|
if(locale=="Zh"){
|
|
lang(new Zh());
|
|
}else if(locale=="En"){
|
|
lang(new En());
|
|
}else {
|
|
lang(new En());
|
|
}
|
|
|
|
}
|