1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWDEFS_H
5#define QWINDOWDEFS_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobjectdefs.h>
9#include <QtCore/qnamespace.h>
10#include <QtCore/qcontainerfwd.h>
11
12QT_BEGIN_NAMESPACE
13
14
15// Class forward definitions
16
17class QPaintDevice;
18class QWidget;
19class QWindow;
20class QDialog;
21class QColor;
22class QPalette;
23class QCursor;
24class QPoint;
25class QSize;
26class QRect;
27class QPolygon;
28class QPainter;
29class QRegion;
30class QFont;
31class QFontMetrics;
32class QFontInfo;
33class QPen;
34class QBrush;
35class QPixmap;
36class QBitmap;
37class QMovie;
38class QImage;
39class QPicture;
40class QTimer;
41class QTime;
42class QClipboard;
43class QString;
44class QByteArray;
45class QApplication;
46
47typedef QList<QWidget *> QWidgetList;
48typedef QList<QWindow *> QWindowList;
49
50QT_END_NAMESPACE
51
52// Window system dependent definitions
53
54
55#if defined(Q_OS_WIN) || defined(Q_QDOC)
56# include <QtGui/qwindowdefs_win.h>
57#endif // Q_OS_WIN
58
59
60
61
62typedef QT_PREPEND_NAMESPACE(quintptr) WId;
63
64
65
66QT_BEGIN_NAMESPACE
67
68typedef QHash<WId, QWidget *> QWidgetMapper;
69typedef QSet<QWidget *> QWidgetSet;
70
71QT_END_NAMESPACE
72
73#if defined(QT_NEEDS_QMAIN)
74#define main qMain
75#endif
76
77// Global platform-independent types and functions
78
79#endif // QWINDOWDEFS_H
80

source code of qtbase/src/gui/kernel/qwindowdefs.h