Akonadi Contacts

customfieldeditorwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, [email protected]
5  SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #pragma once
11 
12 #include "customfields_p.h"
13 #include <QWidget>
14 class KLineEdit;
15 class QPushButton;
16 class QCheckBox;
17 class QComboBox;
18 namespace ContactEditor
19 {
20 class CustomFieldEditorWidget : public QWidget
21 {
22  Q_OBJECT
23 public:
24  explicit CustomFieldEditorWidget(QWidget *parent = nullptr);
25  ~CustomFieldEditorWidget() override;
26  void setReadOnly(bool readOnly);
27 
28 Q_SIGNALS:
29  void addNewField(const CustomField &field);
30 
31 private:
32  void slotAddField();
33  void slotFielNameChanged(const QString &text);
34  void fillTypes();
35  KLineEdit *mFieldName = nullptr;
36  QPushButton *mAddField = nullptr;
37  QCheckBox *mUseAllContacts = nullptr;
38  QComboBox *mFieldType = nullptr;
39 };
40 }
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.