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

0001 /*
0002     SPDX-FileCopyrightText: 2010-2018 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2010-2016 Cristian Oneț <onet.cristian@gmail.com>
0004     SPDX-FileCopyrightText: 2010 Alvaro Soliverez <asoliverez@gmail.com>
0005     SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef KMYMONEYMVCCOMBO_P_H
0010 #define KMYMONEYMVCCOMBO_P_H
0011 
0012 
0013 // ----------------------------------------------------------------------------
0014 // QT Includes
0015 
0016 #include <QString>
0017 
0018 // ----------------------------------------------------------------------------
0019 // KDE Includes
0020 
0021 // ----------------------------------------------------------------------------
0022 // Project Includes
0023 
0024 class QCompleter;
0025 
0026 class KMyMoneyMVCComboPrivate
0027 {
0028 public:
0029     KMyMoneyMVCComboPrivate() :
0030         m_canCreateObjects(false),
0031         m_inFocusOutEvent(false),
0032         m_completer(nullptr)
0033     {
0034     }
0035 
0036     /**
0037       * Flag to control object creation. Use
0038       * KMyMoneyMVCCombo::setSuppressObjectCreation()
0039       * to modify it's setting. Defaults to @a false.
0040       */
0041     bool                  m_canCreateObjects;
0042 
0043     /**
0044       * Flag to check whether a focusOutEvent processing is underway or not
0045       */
0046     bool                  m_inFocusOutEvent;
0047 
0048     QCompleter            *m_completer;
0049     /**
0050       * This is just a cache to be able to implement the old interface.
0051       */
0052     mutable QString                m_id;
0053 };
0054 
0055 #endif