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
qobjectcleanuphandler.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
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#ifndef QOBJECTCLEANUPHANDLER_H
6#define QOBJECTCLEANUPHANDLER_H
7
8#include <QtCore/qobject.h>
9
11
13{
14 Q_OBJECT
15
16public:
17 QObjectCleanupHandler();
18 ~QObjectCleanupHandler();
19
20 QObject *add(QObject *object);
21 void remove(QObject *object);
22 bool isEmpty() const;
23 void clear();
24
25private:
26 // ### move into d pointer
27 QObjectList cleanupObjects;
28
29private Q_SLOTS:
30 void objectDestroyed(QObject *);
31};
32
33QT_END_NAMESPACE
34
35#endif // QOBJECTCLEANUPHANDLER_H
Combined button and popup list for selecting options.