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
KAddressBook
Commits
ce0238c4
Commit
ce0238c4
authored
Mar 08, 2022
by
Laurent Montel
Browse files
const'ify more pointer
parent
a6ce1b74
Pipeline
#146780
failed with stage
in 55 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/configuration/kaddressbook_config_plugins.cpp
View file @
ce0238c4
...
...
@@ -19,6 +19,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMKaddressbookPluginsConfig, "kaddressbook_config_plug
KCMKaddressbookPluginsConfig
::
KCMKaddressbookPluginsConfig
(
QWidget
*
parent
,
const
QVariantList
&
args
)
:
KCModule
(
parent
,
args
)
,
mConfigurePluginWidget
(
new
PimCommon
::
ConfigurePluginsWidget
(
new
KAddressBookConfigPluginListWidget
(
this
),
this
))
{
auto
lay
=
new
QHBoxLayout
(
this
);
lay
->
setContentsMargins
({});
...
...
@@ -33,7 +34,6 @@ KCMKaddressbookPluginsConfig::KCMKaddressbookPluginsConfig(QWidget *parent, cons
about
->
addAuthor
(
i18n
(
"Laurent Montel"
),
QString
(),
QStringLiteral
(
"montel@kde.org"
));
setAboutData
(
about
);
mConfigurePluginWidget
=
new
PimCommon
::
ConfigurePluginsWidget
(
new
KAddressBookConfigPluginListWidget
(
this
),
this
);
connect
(
mConfigurePluginWidget
,
&
PimCommon
::
ConfigurePluginsWidget
::
changed
,
this
,
&
KCMKaddressbookPluginsConfig
::
slotConfigChanged
);
lay
->
addWidget
(
mConfigurePluginWidget
);
}
...
...
src/configuration/kaddressbook_config_plugins.h
View file @
ce0238c4
...
...
@@ -26,6 +26,6 @@ public:
private:
void
slotConfigChanged
();
PimCommon
::
ConfigurePluginsWidget
*
mConfigurePluginWidget
=
nullptr
;
PimCommon
::
ConfigurePluginsWidget
*
const
mConfigurePluginWidget
;
};
}
src/configuration/kaddressbook_config_userfeedback.cpp
View file @
ce0238c4
...
...
@@ -20,6 +20,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMKaddressbookUserFeedBackConfig, "kaddressbook_config
KCMKaddressbookUserFeedBackConfig
::
KCMKaddressbookUserFeedBackConfig
(
QWidget
*
parent
,
const
QVariantList
&
args
)
:
KCModule
(
parent
,
args
)
,
mUserFeedbackWidget
(
new
KUserFeedback
::
FeedbackConfigWidget
(
this
))
{
auto
lay
=
new
QHBoxLayout
(
this
);
lay
->
setContentsMargins
({});
...
...
@@ -34,7 +35,6 @@ KCMKaddressbookUserFeedBackConfig::KCMKaddressbookUserFeedBackConfig(QWidget *pa
about
->
addAuthor
(
i18n
(
"Laurent Montel"
),
QString
(),
QStringLiteral
(
"montel@kde.org"
));
setAboutData
(
about
);
mUserFeedbackWidget
=
new
KUserFeedback
::
FeedbackConfigWidget
(
this
);
connect
(
mUserFeedbackWidget
,
&
KUserFeedback
::
FeedbackConfigWidget
::
configurationChanged
,
this
,
&
KCMKaddressbookUserFeedBackConfig
::
markAsChanged
);
lay
->
addWidget
(
mUserFeedbackWidget
);
...
...
src/configuration/kaddressbook_config_userfeedback.h
View file @
ce0238c4
...
...
@@ -26,6 +26,6 @@ public:
void
defaults
()
override
;
private:
KUserFeedback
::
FeedbackConfigWidget
*
mUserFeedbackWidget
=
nullptr
;
KUserFeedback
::
FeedbackConfigWidget
*
const
mUserFeedbackWidget
;
};
}
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