File indexing completed on 2024-05-12 16:44:05

0001 /*
0002     SPDX-FileCopyrightText: 2006-2018 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef QWIDGETCONTAINER_H
0008 #define QWIDGETCONTAINER_H
0009 
0010 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 #include <QMap>
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 
0021 class QString;
0022 class QWidget;
0023 
0024 namespace KMyMoneyRegister
0025 {
0026 struct QWidgetContainer : public QMap<QString, QWidget*>
0027 {
0028     Q_DISABLE_COPY(QWidgetContainer)
0029     QWidgetContainer();
0030     QWidget* haveWidget(const QString& name) const;
0031     void removeOrphans();
0032 };
0033 } // namespace
0034 
0035 #endif