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) |
| Inherits: | QDialog |
Public Types
| enum | Role { NameRole, UriRole, PixmapRole, MergeReasonRole } |
Public Functions
Private Slots
| void | onMergeButtonClicked() |
| void | searchForDuplicates() |
| void | searchForDuplicatesFinished(KJob *) |
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
MergeDialog::MergeDialog(QWidget *parent = nullptr)
void MergeDialog::searchForDuplicates()
void MergeDialog::searchForDuplicatesFinished(KJob *)
Specifies which PersonsModel will be used to look for duplicates.
model is the PersonsModel to use