Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
40
QHooks::LastHookIndex
@ LastHookIndex
Definition
qhooks_p.h:35
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qtHookData
QT_BEGIN_NAMESPACE quintptr Q_CORE_EXPORT qtHookData[]
Definition
qhooks.cpp:9
qhooks_p.h
QT_VERSION
#define QT_VERSION
Definition
qtversionchecks.h:17
quintptr
size_t quintptr
Definition
qtypes.h:167
qtbase
src
corelib
global
qhooks.cpp
Generated by
1.10.0