KPeople

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
23/**
24 * Use PersonDetailsView to integrate a person's information
25 * in the GUI.
26 *
27 * @since 5.8
28 */
29class KPEOPLEWIDGETS_EXPORT PersonDetailsView : public QWidget
30{
31 Q_OBJECT
32public:
33 explicit PersonDetailsView(QWidget *parent = nullptr);
34 ~PersonDetailsView() override;
35
36public 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
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.