xp-sp3: change grammer to support Qt5.6.3 for xp with sp3 system.

This commit is contained in:
2025-06-25 10:54:04 +08:00
parent 1f9275ed72
commit 60f5cb62b1
26 changed files with 250 additions and 246 deletions

View File

@@ -92,25 +92,20 @@ void frelayGUI::ControlLayout()
void frelayGUI::ControlMsgHander(QtMsgType type, const QMessageLogContext& context, const QString& msg)
{
QMetaObject::invokeMethod(
qApp,
[type, msg]() {
switch (type) {
case QtDebugMsg:
logPrint->Debug(msg);
break;
case QtInfoMsg:
logPrint->Info(msg);
break;
case QtWarningMsg:
logPrint->Warn(msg);
break;
default:
logPrint->Error(msg);
break;
}
},
Qt::QueuedConnection);
switch (type) {
case QtDebugMsg:
logPrint->Debug(msg);
break;
case QtInfoMsg:
logPrint->Info(msg);
break;
case QtWarningMsg:
logPrint->Warn(msg);
break;
default:
logPrint->Error(msg);
break;
}
}
void frelayGUI::HandleTask(const QVector<TransTask>& tasks)