summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.h
blob: 0894b64f3351ce050cc4bd783b60ff345ae107e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (C) 2016 The Qt Company Ltd.
// Copyright (C) 2016 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef TST_QCOREAPPLICATION_H
#define TST_QCOREAPPLICATION_H

#include <QtCore/QtCore>

class tst_QCoreApplication: public QObject
{
    Q_OBJECT
private slots:
    void sendEventsOnProcessEvents(); // this must be the first test
    void getSetCheck();
    void qAppName();
    void qAppVersion();
    void argc();
    void postEvent();
    void removePostedEvents();
#if QT_CONFIG(thread)
    void deliverInDefinedOrder();
#endif
    void applicationPid();
#ifdef QT_BUILD_INTERNAL
    void globalPostedEventsCount();
#endif
    void processEventsAlwaysSendsPostedEvents();
#ifdef Q_OS_WIN
    void sendPostedEventsInNativeLoop();
#endif
    void quit();
    void reexec();
    void execAfterExit();
    void eventLoopExecAfterExit();
    void customEventDispatcher();
    void testQuitLock();
    void QTBUG31606_QEventDestructorDeadLock();
    void applicationEventFilters_mainThread();
    void applicationEventFilters_auxThread();
    void threadedEventDelivery_data();
    void threadedEventDelivery();
    void testTrWithPercantegeAtTheEnd();
#if QT_CONFIG(library)
    void addRemoveLibPaths();
#endif
};

#endif // TST_QCOREAPPLICATION_H