Code clean, and code style error fix.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "InputObject.h"
|
||||
#include "ui_inputobject.h"
|
||||
//#include "qdesktopwidget.h"
|
||||
#include <QDebug>
|
||||
#include <QEvent>
|
||||
#include <QKeyEvent>
|
||||
|
||||
@@ -29,9 +29,8 @@ void LanguageSwitcher::setDefaultLanguage(QString str)
|
||||
QString lan = QString(":/translations/" + str + ".qm");
|
||||
if (translator->load(lan))
|
||||
{
|
||||
//qDebug() << "installTranslator";
|
||||
//QApplication::installTranslator(translator);
|
||||
EventCenter::Default()->triggerEvent(ReloadLanguage, nullptr, nullptr);
|
||||
}
|
||||
EventCenter::Default()->triggerEvent(ReloadLanguage, nullptr, nullptr);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user