KPeople 5.109.0
persondetailsview.h
1/*
2 SPDX-FileCopyrightText: 2011 Martin Klapetek <mklapetek@kde.org>
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
16class QLabel;
17class QVBoxLayout;
18
19namespace KPeople
20{
21class PersonDetailsViewPrivate;
22
29class KPEOPLEWIDGETS_EXPORT PersonDetailsView : public QWidget
30{
31 Q_OBJECT
32public:
33 PersonDetailsView(QWidget *parent = nullptr);
34 ~PersonDetailsView() override;
35
36public Q_SLOTS:
38 void setPerson(PersonData *person);
39 // void setPersonsModel(PersonsModel *model);
40
41private Q_SLOTS:
42 KPEOPLEWIDGETS_NO_EXPORT void reload();
43
44private:
45 Q_DECLARE_PRIVATE(PersonDetailsView)
46 PersonDetailsViewPrivate *d_ptr;
47};
48}
49
50#endif // PERSON_DETAILS_VIEW_H
Allows to query the information about a given person.
Definition persondata.h:35
Use PersonDetailsView to integrate a person's information in the GUI.
Definition persondetailsview.h:30
void setPerson(PersonData *person)
Specifies the person for which the details will be displayed.