File indexing completed on 2024-05-05 16:16:35
0001 /* 0002 SPDX-FileCopyrightText: 2011 Martin Klapetek <mklapetek@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef PERSON_DETAILS_VIEW_H 0008 #define PERSON_DETAILS_VIEW_H 0009 0010 #include <QWidget> 0011 0012 #include <kpeople/widgets/kpeoplewidgets_export.h> 0013 0014 #include "../persondata.h" 0015 0016 class QLabel; 0017 class QVBoxLayout; 0018 0019 namespace KPeople 0020 { 0021 class PersonDetailsViewPrivate; 0022 0023 /** 0024 * Use PersonDetailsView to integrate a person's information 0025 * in the GUI. 0026 * 0027 * @since 5.8 0028 */ 0029 class KPEOPLEWIDGETS_EXPORT PersonDetailsView : public QWidget 0030 { 0031 Q_OBJECT 0032 public: 0033 PersonDetailsView(QWidget *parent = nullptr); 0034 ~PersonDetailsView() override; 0035 0036 public Q_SLOTS: 0037 /** Specifies the @p person for which the details will be displayed. */ 0038 void setPerson(PersonData *person); 0039 // void setPersonsModel(PersonsModel *model); 0040 0041 private Q_SLOTS: 0042 KPEOPLEWIDGETS_NO_EXPORT void reload(); 0043 0044 private: 0045 Q_DECLARE_PRIVATE(PersonDetailsView) 0046 PersonDetailsViewPrivate *d_ptr; 0047 }; 0048 } 0049 0050 #endif // PERSON_DETAILS_VIEW_H