Loading...
Searching...
No Matches

Wrapper over QApplication. More...

Inheritance diagram for SafeQApplication:

Detailed Description

Wrapper over QApplication.

Prevents an app crash in case of an internal error. Disabled for debugging, because it makes getting the stack trace harder.

Public Member Functions

 SafeQApplication (int &argc, char **argv)
 
void inform (const QString &str)
 
bool notify (QObject *receiver, QEvent *event) override
 
bool event (QEvent *ev) override
 
void fileOpened (const QString &opened)
 

Static Public Member Functions

static void DebugOutput (QtMsgType type, const QMessageLogContext &context, const QString &msg)
 
static bool lastMessageWasSuppressed () noexcept
 Whether the message DebugOutput last handled on this thread was dropped by the repeated-message throttle.
 

Member Function Documentation

◆ lastMessageWasSuppressed()

bool SafeQApplication::lastMessageWasSuppressed ( )
staticnoexcept

Whether the message DebugOutput last handled on this thread was dropped by the repeated-message throttle.

Lets the other sinks (the Messages panel) drop it too, without counting the message twice. Always false outside of WebAssembly.


The documentation for this class was generated from the following files: