repos
/
qt.core
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
filehistory
normal
|
plain
|
shade
|
zebra
initial import
Annotate for file src/lib/qt-smoke.cpp
2009-04-05 tobias
1
#include <qnamespace.h>
17:56:16 '
2
#include <QEvent>
'
3
#include <QtDebug>
'
4
'
5
/** @file
'
6
* @brief Qt support functions */
'
7
'
8
extern "C" {
'
9
'
10
/** Registers a callback to be invoked for every QEvent.
'
11
* @see QCoreApplication::notifyInternal
'
12
*
'
13
* @param callback the callback
'
14
*
'
15
* @return @c true on success and @c false when the callback table is full.
'
16
*/
'
17
int
'
18
qt_smoke_register_event_notify(void* callback)
'
19
{
'
20
Q_ASSERT(callback);
'
21
'
22
return QInternal::registerCallback(QInternal::EventNotifyCallback,
'
23
reinterpret_cast<qInternalCallback>(callback));
'
24
}
'
25
'
26
} // extern "C"