Code clean, and code style error fix.

This commit is contained in:
Krad
2022-04-22 17:16:45 +08:00
parent 7cee364fc3
commit 27487fdf3c
21 changed files with 198 additions and 240 deletions

View File

@@ -1,6 +1,5 @@
#include "InputObject.h"
#include "ui_inputobject.h"
//#include "qdesktopwidget.h"
#include <QDebug>
#include <QEvent>
#include <QKeyEvent>

View File

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