• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hluk / CopyQ / #4015

17 Oct 2023 06:08AM CUT coverage: 74.296% (-0.1%) from 74.4%
#4015

push

travis-ci

web-flow
itemfakevim: fix build with qt 6.6.0 (#2508)

Reference: https://github.com/qt-creator/qt-creator/commit/e56e3b6f3

18429 of 24805 relevant lines covered (74.3%)

24531.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/app/applicationexceptionhandler.cpp
1
// SPDX-License-Identifier: GPL-3.0-or-later
2

3
#include "applicationexceptionhandler.h"
4

5
#include "common/log.h"
6

7
#include <QCoreApplication>
8
#include <QFile>
9
#include <QMetaObject>
10

11
void logException(const char *what)
×
12
{
13
    if ( canUseStandardOutput() ) {
×
14
        QFile f;
×
15
        f.open(stderr, QIODevice::WriteOnly);
×
16
        f.write(what ? what : "Unknown exception");
×
17
        f.write("\n");
×
18
        f.close();
×
19
    }
20

21
    log( QString("Exception: ") + what, LogError );
×
22
}
23

24
void detail::ApplicationExceptionHandlerBase::exit(int exitCode)
×
25
{
26
    QMetaObject::invokeMethod(this, "exitSlot", Q_ARG(int, exitCode));
×
27
}
28

29
void detail::ApplicationExceptionHandlerBase::exitSlot(int exitCode)
×
30
{
31
    qApp->exit(exitCode);
×
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc