Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
2b0c2e9c
Commit
2b0c2e9c
authored
Aug 18, 2022
by
Laurent Montel
Browse files
const'ify++
parent
7fa37d45
Pipeline
#219523
passed with stage
in 27 minutes and 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/plugins/mergelib/searchduplicate/searchandmergecontactduplicatecontactdialog.h
View file @
2b0c2e9c
...
...
@@ -37,10 +37,10 @@ private:
void
writeConfig
();
SearchDuplicateResultWidget
*
const
mSearchResult
;
MergeContactShowResultTabWidget
*
const
mMergeContactResult
;
KABMergeContacts
::
MergeContactErrorLabel
*
mNoContactSelected
=
nullptr
;
KABMergeContacts
::
MergeContactErrorLabel
*
mNoDuplicateContactFound
=
nullptr
;
KABMergeContacts
::
MergeContactErrorLabel
*
mNoEnoughContactSelected
=
nullptr
;
KABMergeContacts
::
MergeContactSelectInformationTabWidget
*
mSelectInformation
=
nullptr
;
QStackedWidget
*
mStackedWidget
=
nullptr
;
KABMergeContacts
::
MergeContactErrorLabel
*
const
mNoContactSelected
;
KABMergeContacts
::
MergeContactErrorLabel
*
const
mNoDuplicateContactFound
;
KABMergeContacts
::
MergeContactErrorLabel
*
const
mNoEnoughContactSelected
;
KABMergeContacts
::
MergeContactSelectInformationTabWidget
*
const
mSelectInformation
;
QStackedWidget
*
const
mStackedWidget
;
};
}
kaddressbook/plugins/mergelib/searchduplicate/searchduplicateresultwidget.cpp
View file @
2b0c2e9c
...
...
@@ -25,6 +25,9 @@ KADDRESSBOOKMERGELIB_EXPORT QAbstractItemModel *_k_searchDuplicateResultStubMode
using
namespace
KABMergeContacts
;
SearchDuplicateResultWidget
::
SearchDuplicateResultWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mResult
(
new
ResultDuplicateTreeWidget
(
this
))
,
mContactViewer
(
new
KAddressBookGrantlee
::
GrantleeContactViewer
(
this
))
,
mMergeContactWarning
(
new
MergeContactLoseInformationWarning
(
this
))
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
mainLayout
->
setContentsMargins
({});
...
...
@@ -33,15 +36,12 @@ SearchDuplicateResultWidget::SearchDuplicateResultWidget(QWidget *parent)
splitter
->
setObjectName
(
QStringLiteral
(
"splitter"
));
splitter
->
setChildrenCollapsible
(
false
);
mainLayout
->
addWidget
(
splitter
);
mResult
=
new
ResultDuplicateTreeWidget
(
this
);
mResult
->
setObjectName
(
QStringLiteral
(
"result_treewidget"
));
mContactViewer
=
new
KAddressBookGrantlee
::
GrantleeContactViewer
(
this
);
mContactViewer
->
setObjectName
(
QStringLiteral
(
"contact_viewer"
));
splitter
->
addWidget
(
mResult
);
splitter
->
addWidget
(
mContactViewer
);
connect
(
mResult
,
&
ResultDuplicateTreeWidget
::
showContactPreview
,
mContactViewer
,
&
KAddressBookGrantlee
::
GrantleeContactViewer
::
setContact
);
mMergeContactWarning
=
new
MergeContactLoseInformationWarning
(
this
);
mMergeContactWarning
->
setObjectName
(
QStringLiteral
(
"mergecontactwarning"
));
connect
(
mMergeContactWarning
,
&
MergeContactLoseInformationWarning
::
continueMerging
,
this
,
&
SearchDuplicateResultWidget
::
slotAutomaticMerging
);
connect
(
mMergeContactWarning
,
...
...
kaddressbook/plugins/mergelib/searchduplicate/searchduplicateresultwidget.h
View file @
2b0c2e9c
...
...
@@ -52,11 +52,11 @@ private:
void
mergeContact
();
QVector
<
MergeConflictResult
>
mResultConflictList
;
QVector
<
Akonadi
::
Item
::
List
>
mListContactToMerge
;
ResultDuplicateTreeWidget
*
mResult
=
nullptr
;
KAddressBookGrantlee
::
GrantleeContactViewer
*
mContactViewer
=
nullptr
;
ResultDuplicateTreeWidget
*
const
mResult
;
KAddressBookGrantlee
::
GrantleeContactViewer
*
const
mContactViewer
;
QPushButton
*
mMergeContact
=
nullptr
;
Akonadi
::
CollectionComboBox
*
mCollectionCombobox
=
nullptr
;
MergeContactLoseInformationWarning
*
mMergeContactWarning
=
nullptr
;
MergeContactLoseInformationWarning
*
const
mMergeContactWarning
;
int
mIndexListContact
=
0
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment