BVB Source Codes

capybara-webkit Show IgnoreDebugOutput.cpp Source code

Return Download capybara-webkit: download IgnoreDebugOutput.cpp Source code - Download capybara-webkit Source code - Type:.cpp
  1. #include "IgnoreDebugOutput.h"
  2.  
  3. #include <QtGlobal>
  4. #include <QString>
  5. #include <stdio.h>
  6.  
  7. void debugIgnoringMessageHandler(QtMsgType type, const char *msg);
  8.  
  9. #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
  10.   void debugIgnoringMessageHandlerQt5(QtMsgType type, const QMessageLogContext &context, const QString &message);
  11. #endif
  12.  
  13. void debugIgnoringMessageHandler(QtMsgType type, const char *msg) {
  14.   switch (type) {
  15.     case QtDebugMsg:
  16.     case QtWarningMsg:
  17.       break;
  18.     default:
  19.       fprintf(stderr, "%s\n", msg);
  20.       break;
  21.   }
  22. }
  23.  
  24. #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
  25.   void debugIgnoringMessageHandlerQt5(QtMsgType type, const QMessageLogContext &context, const QString &message) {
  26.     Q_UNUSED(context);
  27.     debugIgnoringMessageHandler(type, message.toLocal8Bit().data());
  28.   }
  29. #endif
  30.  
  31. void ignoreDebugOutput(void) {
  32. #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
  33.   qInstallMessageHandler(debugIgnoringMessageHandlerQt5);
  34. #else
  35.   qInstallMsgHandler(debugIgnoringMessageHandler);
  36. #endif
  37. }
  38.  
downloadIgnoreDebugOutput.cpp Source code - Download capybara-webkit Source code
Related Source Codes/Software:
dat.gui - dat.gui is a lightweight controller library for Ja... 2017-04-16
tmate - Instant Terminal Sharing ht... 2017-04-16
WNXHuntForCity - City find By Objective - C 2017-04-16
st2 - StackStorm (aka IFTTT for Ops) is event-driven aut... 2017-04-16
css-in-js - React: CSS in JS techniques comparison. 2017-04-16
fullstackpython.com - Full Stack Python source with Pelican, Bootstrap a... 2017-04-16
naxsi - NAXSI is an open-source, high performance, low rul... 2017-04-16
ToGL - Direct3D to OpenGL abstraction layer 2017-04-16
LiveScript - LiveScript is a language which compiles to JavaScr... 2017-04-16
clair - Vulnerability Static Analysis for Container 2017-04-17
pipfile - 2017-04-23
MaterialSearchView - Express it in the library to implement SearchView ... 2017-04-23
ptpython - A better Python REPL 2017-04-23
Laravel-4-Bootstrap-Starter-Site - Laravel 4 Starter Site is a basic blog application... 2017-04-23
official-images - Primary source of truth for the Docker "Official I... 2017-04-23
awesome-chrome-devtools - Awesome tooling and resources in the Chrome DevToo... 2017-04-23
EventStore - The open-source, functional database with Complex ... 2017-04-23
screencat - 2017-04-23
viz.js - A hack to put Graphviz on the web. ... 2017-04-23
JKeyboardPanelSwitch - For resolve the layout conflict when keybord & amp... 2017-04-23

 Back to top