1/*
2 This file is part of the KDE libraries
3
4 SPDX-FileCopyrightText: 2000, 2001 Dawit Alemayehu <adawit@kde.org>
5 SPDX-FileCopyrightText: 2000, 2001 Carsten Pfeiffer <pfeiffer@kde.org>
6 SPDX-FileCopyrightText: 2000 Stefan Schimanski <1Stein@gmx.de>
7
8 SPDX-License-Identifier: LGPL-2.1-or-later
9*/
10
11#ifndef KCOMBOBOX_P_H
12#define KCOMBOBOX_P_H
13
14#include "kcombobox.h"
15
16#include "klineedit.h"
17
18#include <QMenu>
19#include <QPointer>
20
21class KComboBoxPrivate
22{
23 Q_DECLARE_PUBLIC(KComboBox)
24
25public:
26 explicit KComboBoxPrivate(KComboBox *q)
27 : q_ptr(q)
28 {
29 }
30 virtual ~KComboBoxPrivate() = default;
31
32 /**
33 * Initializes the variables upon construction.
34 */
35 void init();
36
37 void slotLineEditDeleted(QLineEdit *sender);
38
39 KComboBox *const q_ptr;
40
41 KLineEdit *klineEdit = nullptr;
42 bool trapReturnKey = false;
43 QPointer<QMenu> contextMenu;
44 QMetaObject::Connection m_klineEditConnection;
45};
46
47#endif
48

source code of kcompletion/src/kcombobox_p.h