KPeople

persondetailsview.h
1 /*
2  SPDX-FileCopyrightText: 2011 Martin Klapetek <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef PERSON_DETAILS_VIEW_H
8 #define PERSON_DETAILS_VIEW_H
9 
10 #include <QWidget>
11 
12 #include <kpeople/widgets/kpeoplewidgets_export.h>
13 
14 #include "../persondata.h"
15 
16 class QLabel;
17 class QVBoxLayout;
18 
19 namespace KPeople
20 {
21 class PersonDetailsViewPrivate;
22 
23 /**
24  * Use PersonDetailsView to integrate a person's information
25  * in the GUI.
26  *
27  * @since 5.8
28  */
29 class KPEOPLEWIDGETS_EXPORT PersonDetailsView : public QWidget
30 {
31  Q_OBJECT
32 public:
33  PersonDetailsView(QWidget *parent = nullptr);
34  ~PersonDetailsView() override;
35 
36 public Q_SLOTS:
37  /** Specifies the @p person for which the details will be displayed. */
38  void setPerson(PersonData *person);
39  // void setPersonsModel(PersonsModel *model);
40 
41 private Q_SLOTS:
42  void reload();
43 
44 private:
45  Q_DECLARE_PRIVATE(PersonDetailsView)
46  PersonDetailsViewPrivate *d_ptr;
47 };
48 }
49 
50 #endif // PERSON_DETAILS_VIEW_H
Use PersonDetailsView to integrate a person&#39;s information in the GUI.
Allows to query the information about a given person.
Definition: persondata.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 27 2022 22:42:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.