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// Qt-Security score:significant reason:default
4
5#include "qhooks_p.h"
6
8
9// Only add to the end, and bump version if you do.
10quintptr Q_CORE_EXPORT qtHookData[] = {
11 3, // hook data version
12 QHooks::LastHookIndex, // size of qtHookData
13 QT_VERSION,
14
15 // AddQObject, void(*)(QObject*), called for every constructed QObject
16 // Note: this is called from the QObject constructor, ie. the sub-class
17 // constructors haven't run yet.
18 0,
19
20 // RemoveQObject, void(*)(QObject*), called for every destructed QObject
21 // Note: this is called from the QObject destructor, ie. the object
22 // you get as an argument is already largely invalid.
23 0,
24
25 // Startup, void(*)(), called once QCoreApplication is operational
26 0,
27
28 // TypeInformationVersion, an integral value, bumped whenever private
29 // object sizes or member offsets that are used in Qt Creator's
30 // data structure "pretty printing" change.
31 //
32 // The required sizes and offsets are tested in tests/auto/other/toolsupport.
33 // When this fails and the change was intentional, adjust the test and
34 // adjust this value here.
35 22,
36};
37
38static_assert(QHooks::LastHookIndex == sizeof(qtHookData) / sizeof(qtHookData[0]));
39
40QT_END_NAMESPACE
Combined button and popup list for selecting options.