File indexing completed on 2024-04-21 04:58:12
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2003 Simon Hausmann <hausmann@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __delayedinitializer_h__ 0008 #define __delayedinitializer_h__ 0009 0010 #include <QObject> 0011 class QEvent; 0012 0013 class DelayedInitializer : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 DelayedInitializer(int eventType, QObject *parent); 0018 0019 protected: 0020 bool eventFilter(QObject *receiver, QEvent *event) override; 0021 0022 Q_SIGNALS: 0023 void initialize(); 0024 0025 private Q_SLOTS: 0026 void slotInitialize(); 0027 private: 0028 int m_eventType; 0029 bool m_signalEmitted; 0030 }; 0031 0032 #endif