summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qcoreevent.h')
-rw-r--r--src/corelib/kernel/qcoreevent.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h
index 721342a66d..b56d5ab401 100644
--- a/src/corelib/kernel/qcoreevent.h
+++ b/src/corelib/kernel/qcoreevent.h
@@ -347,9 +347,10 @@ private:
class Q_CORE_EXPORT QTimerEvent : public QEvent
{
public:
- explicit QTimerEvent( int timerId );
+ explicit QTimerEvent(int timerId);
~QTimerEvent();
int timerId() const { return id; }
+
protected:
int id;
};
@@ -359,12 +360,13 @@ class QObject;
class Q_CORE_EXPORT QChildEvent : public QEvent
{
public:
- QChildEvent( Type type, QObject *child );
+ QChildEvent(Type type, QObject *child);
~QChildEvent();
QObject *child() const { return c; }
bool added() const { return type() == ChildAdded; }
bool polished() const { return type() == ChildPolished; }
bool removed() const { return type() == ChildRemoved; }
+
protected:
QObject *c;
};
@@ -387,6 +389,7 @@ public:
explicit QDeferredDeleteEvent();
~QDeferredDeleteEvent();
int loopLevel() const { return level; }
+
private:
int level;
friend class QCoreApplication;