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
Kontact
Commits
c01fd52a
Commit
c01fd52a
authored
May 09, 2021
by
Laurent Montel
😁
Browse files
Const'ify pointer
parent
f06ee95a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kcmkontact.cpp
View file @
c01fd52a
...
...
@@ -26,6 +26,7 @@ using namespace Kontact;
K_PLUGIN_FACTORY_WITH_JSON
(
KCMKontactSummaryFactory
,
"kontactconfig.json"
,
registerPlugin
<
KcmKontact
>
();)
KcmKontact
::
KcmKontact
(
QWidget
*
parent
,
const
QVariantList
&
args
)
:
KCModule
(
parent
,
args
)
,
mPluginCombo
(
new
QComboBox
(
parent
))
{
auto
topLayout
=
new
QVBoxLayout
(
this
);
QBoxLayout
*
pluginStartupLayout
=
new
QHBoxLayout
();
...
...
@@ -35,7 +36,6 @@ KcmKontact::KcmKontact(QWidget *parent, const QVariantList &args)
forceStartupPluginCheckBox
->
setObjectName
(
QStringLiteral
(
"kcfg_ForceStartupPlugin"
));
pluginStartupLayout
->
addWidget
(
forceStartupPluginCheckBox
);
mPluginCombo
=
new
QComboBox
(
parent
);
mPluginCombo
->
setToolTip
(
i18nc
(
"@info:tooltip"
,
"Select the initial plugin to use on each start"
));
mPluginCombo
->
setWhatsThis
(
i18nc
(
"@info:whatsthis"
,
"Select the plugin from this drop down list to be used as the "
...
...
src/kcmkontact.h
View file @
c01fd52a
...
...
@@ -29,7 +29,7 @@ public:
private:
QVector
<
KPluginMetaData
>
mPluginList
;
QComboBox
*
mPluginCombo
=
nullptr
;
QComboBox
*
const
mPluginCombo
;
QCheckBox
*
mShowSideBarCheckbox
=
nullptr
;
};
}
...
...
Write
Preview
Markdown
is supported
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