KPeople::MergeDialog Class
The merge dialog will be used to provide a GUI to attempt to figure out what contacts should be merged. More...
Header: | #include <KPeople/Widgets/MergeDialog> |
CMake: | find_package(KF6 REQUIRED COMPONENTS PeopleWidgets) target_link_libraries(mytarget PRIVATE KF6::PeopleWidgets) |
Since: | 5.8 |
Inherits: | QDialog |
Public Types
enum | Role { NameRole, UriRole, PixmapRole, MergeReasonRole } |
Public Functions
MergeDialog(QWidget *parent = nullptr) | |
void | setPersonsModel(KPeople::PersonsModel *model) |
Detailed Description
By properly merging contacts, the user will end up with having more information on each person.
Member Type Documentation
enum MergeDialog::Role
Constant | Value |
---|---|
KPeople::MergeDialog::NameRole | Qt::DisplayRole |
KPeople::MergeDialog::UriRole | Qt::UserRole + 1 |
KPeople::MergeDialog::PixmapRole | 258 |
KPeople::MergeDialog::MergeReasonRole | 259 |
Member Function Documentation
[explicit]
MergeDialog::MergeDialog(QWidget *parent = nullptr)
void MergeDialog::setPersonsModel(KPeople::PersonsModel *model)
Specifies which PersonsModel will be used to look for duplicates.
model is the PersonsModel to use