Skip to content
Snippets Groups Projects
Verified Commit 9c9c0ca0 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

chore: clean up main.cpp

parent adaa1c08
No related branches found
No related tags found
1 merge request!53QDS-13458 New UI with target functionalities
Pipeline #75730 passed
......@@ -31,50 +31,6 @@
#include "backend.h"
#include "logger.h"
// static Backend *backend;
// static QString appLogs;
// void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
// {
// QString logPrefix, logSuffix, newLog;
// QByteArray localMsg = msg.toLocal8Bit();
// const char *file = context.file ? context.file : "";
// const char *function = context.function ? context.function : "";
// switch (type) {
// case QtDebugMsg:
// logPrefix = QStringLiteral("Debug: ");
// break;
// case QtInfoMsg:
// logPrefix = QStringLiteral("Info: ");
// break;
// case QtWarningMsg:
// logPrefix = QStringLiteral("Warning: ");
// break;
// case QtCriticalMsg:
// logPrefix = QStringLiteral("Critical: ");
// break;
// case QtFatalMsg:
// logPrefix = QStringLiteral("Fatal: ");
// logSuffix = QStringLiteral(" (%1:%2, %3)").arg(file).arg(context.line).arg(function);
// break;
// }
// newLog += logPrefix + localMsg + logSuffix + "\n";
// __android_log_print(ANDROID_LOG_DEBUG, "Qt_UI_Viewer", "%s", qPrintable(newLog));
// if (type != QtDebugMsg) {
// if (backend)
// backend->setLogs(appLogs += newLog);
// if (type == QtCriticalMsg || type == QtFatalMsg) {
// QMessageBox msgBox{QMessageBox::Critical, "Critical:", msg, QMessageBox::Ok};
// msgBox.exec();
// }
// }
// }
int main(int argc, char *argv[])
{
// qInstallMessageHandler(messageHandler);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment