Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhooks.cpp
Go to the documentation of this file.
1
// Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Volker Krause <volker.krause@kdab.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
include
"qhooks_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
// Only add to the end, and bump version if you do.
9
quintptr Q_CORE_EXPORT qtHookData[] = {
10
3,
// hook data version
11
QHooks::LastHookIndex,
// size of qtHookData
12
QT_VERSION,
13
14
// AddQObject, void(*)(QObject*), called for every constructed QObject
15
// Note: this is called from the QObject constructor, ie. the sub-class
16
// constructors haven't run yet.
17
0,
18
19
// RemoveQObject, void(*)(QObject*), called for every destructed QObject
20
// Note: this is called from the QObject destructor, ie. the object
21
// you get as an argument is already largely invalid.
22
0,
23
24
// Startup, void(*)(), called once QCoreApplication is operational
25
0,
26
27
// TypeInformationVersion, an integral value, bumped whenever private
28
// object sizes or member offsets that are used in Qt Creator's
29
// data structure "pretty printing" change.
30
//
31
// The required sizes and offsets are tested in tests/auto/other/toolsupport.
32
// When this fails and the change was intentional, adjust the test and
33
// adjust this value here.
34
22,
35
};
36
37
static_assert
(QHooks::LastHookIndex ==
sizeof
(qtHookData) /
sizeof
(qtHookData[0]));
38
39
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
corelib
global
qhooks.cpp
Generated on
for Qt by
1.14.0