Skip to content

Commit

Permalink
Hide messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pontaoski committed Jul 21, 2019
1 parent 9a83686 commit bb7214a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
return;

QByteArray localMsg = msg.toLocal8Bit();
const char *file = context.file ? context.file : "";
const char *function = context.function ? context.function : "";
Expand All @@ -52,7 +54,7 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS

int main(int argc, char *argv[])
{
// qInstallMessageHandler(myMessageOutput);
qInstallMessageHandler(myMessageOutput);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

QGuiApplication app(argc, argv);
Expand Down

0 comments on commit bb7214a

Please sign in to comment.