File indexing completed on 2024-04-28 03:53:08
0001 /* 0002 This file is part of the KDE libraries 0003 0004 SPDX-FileCopyrightText: 2000, 2001 Dawit Alemayehu <adawit@kde.org> 0005 SPDX-FileCopyrightText: 2000, 2001 Carsten Pfeiffer <pfeiffer@kde.org> 0006 SPDX-FileCopyrightText: 2000 Stefan Schimanski <1Stein@gmx.de> 0007 0008 SPDX-License-Identifier: LGPL-2.1-or-later 0009 */ 0010 0011 #ifndef KCOMBOBOX_P_H 0012 #define KCOMBOBOX_P_H 0013 0014 #include "kcombobox.h" 0015 0016 #include "klineedit.h" 0017 0018 #include <QMenu> 0019 #include <QPointer> 0020 0021 class KComboBoxPrivate 0022 { 0023 Q_DECLARE_PUBLIC(KComboBox) 0024 0025 public: 0026 explicit KComboBoxPrivate(KComboBox *q) 0027 : q_ptr(q) 0028 { 0029 } 0030 virtual ~KComboBoxPrivate() = default; 0031 0032 /** 0033 * Initializes the variables upon construction. 0034 */ 0035 void init(); 0036 0037 void slotLineEditDeleted(QLineEdit *sender); 0038 0039 KComboBox *const q_ptr; 0040 0041 KLineEdit *klineEdit = nullptr; 0042 bool trapReturnKey = false; 0043 QPointer<QMenu> contextMenu; 0044 QMetaObject::Connection m_klineEditConnection; 0045 }; 0046 0047 #endif