2 #include <QApplication>
11 #include <score/widgets/MessageBox.hpp>
13 #include <score_lib_base_export.h>
25 : fd{fopen(
"score.log",
"a")}
29 FILE* desc()
const {
return fd; }
48 : QApplication{argc, argv}
50 #if defined(SCORE_DEBUG)
51 qInstallMessageHandler(DebugOutput);
57 DebugOutput(QtMsgType type,
const QMessageLogContext& context,
const QString& msg);
59 #if !defined(SCORE_DEBUG)
60 void inform(
const QString& str)
62 score::information(QApplication::activeWindow(),
"", str);
65 bool notify(QObject* receiver, QEvent* event)
override;
68 bool event(QEvent* ev)
override;
70 void fileOpened(
const QString& opened)
71 E_SIGNAL(SCORE_LIB_BASE_EXPORT, fileOpened, opened)
73 #if defined(__APPLE__)
C++ abstraction over fopen/fclose.
Definition: SafeQApplication.hpp:22
Wrapper over QApplication.
Definition: SafeQApplication.hpp:44