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
b79f5274
Commit
b79f5274
authored
Aug 18, 2022
by
Laurent Montel
Browse files
const'ify pointer + add missing Q_REQUIRED_RESULT
parent
95ef5acc
Changes
3
Hide whitespace changes
Inline
Side-by-side
kaddressbook/plugins/mergelib/manualmerge/mergecontactwidget.cpp
View file @
b79f5274
...
...
@@ -28,6 +28,10 @@ using namespace KABMergeContacts;
MergeContactWidget
::
MergeContactWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
mConflictTypes
(
MergeContacts
::
None
)
,
mListWidget
(
new
MergeContactWidgetList
(
this
))
,
mMergeButton
(
new
QPushButton
(
i18n
(
"merge"
),
this
))
,
mMergeContactWarning
(
new
MergeContactLoseInformationWarning
(
this
))
,
mMergeContactInfoWidget
(
new
MergeContactInfoWidget
(
this
))
{
auto
lay
=
new
QVBoxLayout
(
this
);
lay
->
setContentsMargins
({});
...
...
@@ -43,7 +47,6 @@ MergeContactWidget::MergeContactWidget(QWidget *parent)
selectContactWidget
->
setLayout
(
vbox
);
auto
lab
=
new
QLabel
(
i18n
(
"Select contacts that you really want to merge:"
),
this
);
vbox
->
addWidget
(
lab
);
mListWidget
=
new
MergeContactWidgetList
(
this
);
mListWidget
->
setObjectName
(
QStringLiteral
(
"listcontact"
));
mListWidget
->
setSelectionMode
(
QAbstractItemView
::
SingleSelection
);
vbox
->
addWidget
(
mListWidget
);
...
...
@@ -51,11 +54,9 @@ MergeContactWidget::MergeContactWidget(QWidget *parent)
connect
(
mListWidget
,
&
MergeContactWidgetList
::
itemChanged
,
this
,
&
MergeContactWidget
::
slotUpdateMergeButton
);
splitter
->
addWidget
(
selectContactWidget
);
mMergeContactInfoWidget
=
new
MergeContactInfoWidget
(
this
);
mMergeContactInfoWidget
->
setObjectName
(
QStringLiteral
(
"mergecontactinfowidget"
));
splitter
->
addWidget
(
mMergeContactInfoWidget
);
mMergeContactWarning
=
new
MergeContactLoseInformationWarning
(
this
);
mMergeContactWarning
->
setObjectName
(
QStringLiteral
(
"mergecontactwarning"
));
connect
(
mMergeContactWarning
,
&
MergeContactLoseInformationWarning
::
continueMerging
,
this
,
&
MergeContactWidget
::
slotAutomaticMerging
);
connect
(
mMergeContactWarning
,
&
MergeContactLoseInformationWarning
::
customizeMergingContacts
,
this
,
&
MergeContactWidget
::
slotCustomizeMergingContacts
);
...
...
@@ -79,7 +80,6 @@ MergeContactWidget::MergeContactWidget(QWidget *parent)
lay
->
addLayout
(
hbox
);
mMergeButton
=
new
QPushButton
(
i18n
(
"merge"
),
this
);
mMergeButton
->
setObjectName
(
QStringLiteral
(
"mergebutton"
));
hbox
->
addWidget
(
mMergeButton
);
mMergeButton
->
setEnabled
(
false
);
...
...
kaddressbook/plugins/mergelib/manualmerge/mergecontactwidget.h
View file @
b79f5274
...
...
@@ -45,10 +45,10 @@ private:
MergeContacts
::
ConflictInformations
mConflictTypes
;
Akonadi
::
Item
::
List
mSelectedItems
;
Akonadi
::
Item
::
List
mItems
;
MergeContactWidgetList
*
mListWidget
=
nullptr
;
QPushButton
*
mMergeButton
=
nullptr
;
MergeContactWidgetList
*
const
mListWidget
;
QPushButton
*
const
mMergeButton
;
Akonadi
::
CollectionComboBox
*
mCollectionCombobox
=
nullptr
;
MergeContactLoseInformationWarning
*
mMergeContactWarning
=
nullptr
;
MergeContactInfoWidget
*
mMergeContactInfoWidget
=
nullptr
;
MergeContactLoseInformationWarning
*
const
mMergeContactWarning
;
MergeContactInfoWidget
*
const
mMergeContactInfoWidget
;
};
}
kaddressbook/plugins/searchduplicates/searchduplicatesplugin.h
View file @
b79f5274
...
...
@@ -19,5 +19,5 @@ public:
explicit
SearchDuplicatesPlugin
(
QObject
*
parent
=
nullptr
,
const
QList
<
QVariant
>
&
=
QList
<
QVariant
>
());
~
SearchDuplicatesPlugin
()
override
;
PimCommon
::
GenericPluginInterface
*
createInterface
(
QObject
*
parent
=
nullptr
)
override
;
Q_REQUIRED_RESULT
PimCommon
::
GenericPluginInterface
*
createInterface
(
QObject
*
parent
=
nullptr
)
override
;
};
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