Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
1b966bc4
Commit
1b966bc4
authored
Feb 11, 2021
by
Laurent Montel
😁
Browse files
Add missing override + const'ify pointer
parent
2f1aea73
Pipeline
#50451
passed with stage
in 15 minutes and 19 seconds
Changes
18
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/akonadi-contacts/actions/qdialer.h
View file @
1b966bc4
...
...
@@ -24,7 +24,7 @@ public:
Q_REQUIRED_RESULT
QString
errorMessage
()
const
;
protected:
QString
mApplicationName
;
const
QString
mApplicationName
;
QString
mErrorMessage
;
};
...
...
src/akonadi-contacts/contactgroupviewer.h
View file @
1b966bc4
...
...
@@ -51,7 +51,7 @@ public:
*
* @param parent The parent widget.
*/
ContactGroupViewer
(
QWidget
*
parent
=
nullptr
);
explicit
ContactGroupViewer
(
QWidget
*
parent
=
nullptr
);
/**
* Destroys the contact group viewer.
...
...
src/akonadi-contacts/contactgroupviewerdialog.h
View file @
1b966bc4
...
...
@@ -52,12 +52,12 @@ public:
*
* @param parent The parent widget of the dialog.
*/
ContactGroupViewerDialog
(
QWidget
*
parent
=
nullptr
);
explicit
ContactGroupViewerDialog
(
QWidget
*
parent
=
nullptr
);
/**
* Destroys the contact group viewer dialog.
*/
~
ContactGroupViewerDialog
();
~
ContactGroupViewerDialog
()
override
;
/**
* Returns the contact group that is currently displayed.
...
...
src/akonadi-contacts/contactviewerdialog.h
View file @
1b966bc4
...
...
@@ -61,7 +61,7 @@ public:
/**
* Destroys the contact viewer dialog.
*/
~
ContactViewerDialog
();
~
ContactViewerDialog
()
override
;
/**
* Returns the contact that is currently displayed.
...
...
src/akonadi-contacts/emailaddressrequester.h
View file @
1b966bc4
...
...
@@ -37,7 +37,7 @@ public:
/**
* Destroys the email address requester.
*/
~
EmailAddressRequester
();
~
EmailAddressRequester
()
override
;
/**
* Clears the text of the email address requester.
...
...
src/akonadi-contacts/emailaddressselectionmodel.h
View file @
1b966bc4
...
...
@@ -20,7 +20,7 @@ class AKONADI_CONTACT_EXPORT EmailAddressSelectionModel : public QObject
Q_OBJECT
public:
explicit
EmailAddressSelectionModel
(
QObject
*
parent
=
nullptr
);
~
EmailAddressSelectionModel
();
~
EmailAddressSelectionModel
()
override
;
Q_REQUIRED_RESULT
Akonadi
::
ContactsTreeModel
*
model
()
const
;
private:
...
...
src/akonadi-contacts/emailaddressselectionwidget.h
View file @
1b966bc4
...
...
@@ -81,7 +81,7 @@ public:
/**
* Destroys the email address selection widget.
*/
~
EmailAddressSelectionWidget
();
~
EmailAddressSelectionWidget
()
override
;
/**
* Returns the list of selected email addresses.
...
...
src/akonadi-contacts/grantlee/contactgrantleewrapper.h
View file @
1b966bc4
...
...
@@ -47,24 +47,24 @@ public:
ContactGrantleeWrapper
(
const
KContacts
::
Addressee
&
addr
);
private:
QString
addressBookLabel
()
const
;
QString
anniversaryLabel
()
const
;
QString
assistantLabel
()
const
;
QString
managerLabel
()
const
;
QString
officeLabel
()
const
;
QString
professionLabel
()
const
;
QString
spouseLabel
()
const
;
Q_REQUIRED_RESULT
QString
addressBookLabel
()
const
;
Q_REQUIRED_RESULT
QString
anniversaryLabel
()
const
;
Q_REQUIRED_RESULT
QString
assistantLabel
()
const
;
Q_REQUIRED_RESULT
QString
managerLabel
()
const
;
Q_REQUIRED_RESULT
QString
officeLabel
()
const
;
Q_REQUIRED_RESULT
QString
professionLabel
()
const
;
Q_REQUIRED_RESULT
QString
spouseLabel
()
const
;
QString
addressBookName
()
const
;
int
age
()
const
;
QString
cryptoPreference
()
const
;
QString
signaturePreference
()
const
;
Q_REQUIRED_RESULT
QString
addressBookName
()
const
;
Q_REQUIRED_RESULT
int
age
()
const
;
Q_REQUIRED_RESULT
QString
cryptoPreference
()
const
;
Q_REQUIRED_RESULT
QString
signaturePreference
()
const
;
QString
photoImgElement
()
const
;
QString
logoImgElement
()
const
;
Q_REQUIRED_RESULT
QString
photoImgElement
()
const
;
Q_REQUIRED_RESULT
QString
logoImgElement
()
const
;
QString
formattedBirthday
()
const
;
QString
formattedAnniversary
()
const
;
Q_REQUIRED_RESULT
QString
formattedBirthday
()
const
;
Q_REQUIRED_RESULT
QString
formattedAnniversary
()
const
;
};
}
...
...
src/akonadi-contacts/grantlee/grantleecontactgroupformatter.cpp
View file @
1b966bc4
...
...
@@ -25,8 +25,8 @@ class Q_DECL_HIDDEN GrantleeContactGroupFormatter::Private
{
public:
Private
()
:
mEngine
(
new
Grantlee
::
Engine
)
{
mEngine
=
new
Grantlee
::
Engine
;
mTemplateLoader
=
QSharedPointer
<
Grantlee
::
FileSystemTemplateLoader
>
(
new
Grantlee
::
FileSystemTemplateLoader
);
}
...
...
@@ -54,7 +54,7 @@ public:
}
QVector
<
QObject
*>
mObjects
;
Grantlee
::
Engine
*
mEngine
=
nullptr
;
Grantlee
::
Engine
*
const
mEngine
;
QSharedPointer
<
Grantlee
::
FileSystemTemplateLoader
>
mTemplateLoader
;
Grantlee
::
Template
mSelfcontainedTemplate
;
Grantlee
::
Template
mEmbeddableTemplate
;
...
...
src/akonadi-contacts/grantlee/grantleecontactviewer.cpp
View file @
1b966bc4
...
...
@@ -14,8 +14,8 @@ using namespace KAddressBookGrantlee;
GrantleeContactViewer
::
GrantleeContactViewer
(
QWidget
*
parent
)
:
Akonadi
::
ContactViewer
(
parent
)
,
mFormatter
(
new
KAddressBookGrantlee
::
GrantleeContactFormatter
)
{
mFormatter
=
new
KAddressBookGrantlee
::
GrantleeContactFormatter
;
setContactFormatter
(
mFormatter
);
mFormatter
->
setAbsoluteThemePath
(
kaddressBookAbsoluteThemePath
());
}
...
...
src/akonadi-contacts/grantlee/grantleecontactviewer.h
View file @
1b966bc4
...
...
@@ -20,13 +20,13 @@ class AKONADI_CONTACT_EXPORT GrantleeContactViewer : public Akonadi::ContactView
Q_OBJECT
public:
explicit
GrantleeContactViewer
(
QWidget
*
parent
=
nullptr
);
~
GrantleeContactViewer
();
~
GrantleeContactViewer
()
override
;
void
setForceDisableQRCode
(
bool
b
);
private:
QString
kaddressBookAbsoluteThemePath
();
KAddressBookGrantlee
::
GrantleeContactFormatter
*
mFormatter
=
nullptr
;
Q_REQUIRED_RESULT
QString
kaddressBookAbsoluteThemePath
();
KAddressBookGrantlee
::
GrantleeContactFormatter
*
const
mFormatter
;
};
}
...
...
src/akonadi-contacts/job/addcontactjob.cpp
View file @
1b966bc4
...
...
@@ -117,7 +117,7 @@ public:
}
AddContactJob
*
const
q
;
KContacts
::
Addressee
mContact
;
const
KContacts
::
Addressee
mContact
;
QWidget
*
mParentWidget
=
nullptr
;
Akonadi
::
Collection
mCollection
;
bool
mShowMessageBox
=
true
;
...
...
src/akonadi-contacts/plugins/categorieseditwidget.cpp
View file @
1b966bc4
...
...
@@ -18,10 +18,10 @@ K_PLUGIN_CLASS_WITH_JSON(CategoriesEditWidget, "categorieseditwidgetplugin.json"
CategoriesEditWidget
::
CategoriesEditWidget
(
QWidget
*
parent
,
const
QList
<
QVariant
>
&
)
:
ContactEditor
::
CategoriesEditAbstractWidget
(
parent
)
,
mTagWidget
(
new
Akonadi
::
TagWidget
(
this
))
{
auto
*
layout
=
new
QHBoxLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
mTagWidget
=
new
Akonadi
::
TagWidget
(
this
);
layout
->
addWidget
(
mTagWidget
);
}
...
...
src/akonadi-contacts/plugins/categorieseditwidget.h
View file @
1b966bc4
...
...
@@ -36,7 +36,7 @@ public:
void
setReadOnly
(
bool
readOnly
)
override
;
private:
Akonadi
::
TagWidget
*
mTagWidget
=
nullptr
;
Akonadi
::
TagWidget
*
const
mTagWidget
;
};
#endif
src/akonadi-contacts/recipientspicker/recipientseditormanager.h
View file @
1b966bc4
...
...
@@ -22,7 +22,7 @@ class AKONADI_CONTACT_EXPORT RecipientsEditorManager : public QObject
Q_OBJECT
public:
explicit
RecipientsEditorManager
(
QObject
*
parent
=
nullptr
);
~
RecipientsEditorManager
();
~
RecipientsEditorManager
()
override
;
static
RecipientsEditorManager
*
self
();
Q_REQUIRED_RESULT
Akonadi
::
EmailAddressSelectionModel
*
model
();
...
...
src/akonadi-contacts/recipientspicker/recipientspickerwidget.h
View file @
1b966bc4
...
...
@@ -19,7 +19,7 @@ class AKONADI_CONTACT_EXPORT RecipientsPickerWidget : public QWidget
Q_OBJECT
public:
explicit
RecipientsPickerWidget
(
bool
onlyShowEmailWithAddress
,
QAbstractItemModel
*
model
,
QWidget
*
parent
=
nullptr
);
~
RecipientsPickerWidget
();
~
RecipientsPickerWidget
()
override
;
Q_REQUIRED_RESULT
QTreeView
*
view
()
const
;
Q_REQUIRED_RESULT
Akonadi
::
EmailAddressSelectionWidget
*
emailAddressSelectionWidget
()
const
;
...
...
src/akonadi-contacts/selectaddressbookdialog.h
View file @
1b966bc4
...
...
@@ -21,7 +21,7 @@ class AKONADI_CONTACT_EXPORT SelectAddressBookDialog : public Akonadi::Collectio
Q_OBJECT
public:
explicit
SelectAddressBookDialog
(
QWidget
*
parent
=
nullptr
);
~
SelectAddressBookDialog
();
~
SelectAddressBookDialog
()
override
;
private:
SelectAddressBookDialogPrivate
*
const
d
;
...
...
src/akonadi-contacts/standardcontactactionmanager.h
View file @
1b966bc4
...
...
@@ -56,7 +56,7 @@ public:
/**
* Destroys the standard contact action manager.
*/
~
StandardContactActionManager
();
~
StandardContactActionManager
()
override
;
/**
* Sets the collection selection model based on which the collection
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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