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
KMail
Commits
67b53edd
Commit
67b53edd
authored
Jun 20, 2021
by
Alexander Lohnau
💬
Committed by
Laurent Montel
Jun 21, 2021
Browse files
Remove unneeded implementation of configModules method
The plugins are now loaded from a specific namespace
parent
3d0fcc9c
Pipeline
#66922
passed with stage
in 24 minutes and 15 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/kontactplugin/kmail/summarywidget.cpp
View file @
67b53edd
...
...
@@ -219,8 +219,3 @@ bool SummaryWidget::eventFilter(QObject *obj, QEvent *e)
return
KontactInterface
::
Summary
::
eventFilter
(
obj
,
e
);
}
QStringList
SummaryWidget
::
configModules
()
const
{
return
QStringList
()
<<
QStringLiteral
(
"kcmkmailsummary.desktop"
);
}
src/kontactplugin/kmail/summarywidget.h
View file @
67b53edd
...
...
@@ -42,8 +42,6 @@ public:
Q_REQUIRED_RESULT
int
summaryHeight
()
const
override
;
Q_REQUIRED_RESULT
QStringList
configModules
()
const
override
;
protected:
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
e
)
override
;
...
...
src/kontactplugin/summary/summaryview_part.cpp
View file @
67b53edd
...
...
@@ -422,26 +422,6 @@ void SummaryViewPart::slotConfigure()
delete
dlg
;
}
QStringList
SummaryViewPart
::
configModules
()
const
{
QStringList
modules
;
QMap
<
QString
,
KontactInterface
::
Summary
*>::
ConstIterator
it
;
QMap
<
QString
,
KontactInterface
::
Summary
*>::
ConstIterator
end
(
mSummaries
.
constEnd
());
for
(
it
=
mSummaries
.
constBegin
();
it
!=
end
;
++
it
)
{
QStringList
cm
=
it
.
value
()
->
configModules
();
QStringList
::
ConstIterator
strIt
;
QStringList
::
ConstIterator
strEnd
(
cm
.
constEnd
());
for
(
strIt
=
cm
.
constBegin
();
strIt
!=
strEnd
;
++
strIt
)
{
if
(
!
(
*
strIt
).
isEmpty
()
&&
!
modules
.
contains
(
*
strIt
))
{
modules
.
append
(
*
strIt
);
}
}
}
return
modules
;
}
void
SummaryViewPart
::
initGUI
(
KontactInterface
::
Core
*
core
)
{
auto
sa
=
new
QScrollArea
(
core
);
...
...
src/kontactplugin/summary/summaryview_part.h
View file @
67b53edd
...
...
@@ -60,7 +60,6 @@ private:
void
saveLayout
();
QString
widgetName
(
QWidget
*
)
const
;
QStringList
configModules
()
const
;
void
drawLtoR
(
QWidget
*
target
,
QWidget
*
widget
,
int
alignment
);
void
drawRtoL
(
QWidget
*
target
,
QWidget
*
widget
,
int
alignment
);
...
...
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