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
KAddressBook
Commits
5b3fe8f3
Commit
5b3fe8f3
authored
Feb 09, 2021
by
Laurent Montel
😁
Browse files
Fix compile with new api
parent
a41c9bd7
Pipeline
#50323
passed with stage
in 10 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5b3fe8f3
...
...
@@ -51,7 +51,7 @@ set(QT_REQUIRED_VERSION "5.14.0")
find_package
(
Qt5
${
QT_REQUIRED_VERSION
}
CONFIG REQUIRED Widgets Test DBus PrintSupport
)
set
(
LIBKDEPIM_LIB_VERSION
"5.16.40"
)
set
(
LIBGRANTLEETHEME_LIB_VERSION
"5.16.40"
)
set
(
PIMCOMMON_LIB_VERSION
"5.16.4
0
"
)
set
(
PIMCOMMON_LIB_VERSION
"5.16.4
1
"
)
set
(
LIBKLEO_LIB_VERSION
"5.16.40"
)
set
(
AKONADI_SEARCH_VERSION
"5.16.40"
)
...
...
src/plugininterface/kaddressbookplugininterface.cpp
View file @
5b3fe8f3
...
...
@@ -35,17 +35,17 @@ void KAddressBookPluginInterface::initializeInterfaceRequires(PimCommon::Abstrac
return
;
}
auto
interface
=
static_cast
<
PimCommon
::
GenericPluginInterface
*>
(
abstractInterface
);
PimCommon
::
GenericPluginInterface
::
RequireTypes
requires
=
interface
->
requires
();
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
CurrentItems
)
{
PimCommon
::
GenericPluginInterface
::
RequireTypes
requires
Features
=
interface
->
requires
Features
();
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
CurrentItems
)
{
interface
->
setCurrentItems
(
mMainWidget
->
collectSelectedAllContactsItem
());
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
Items
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
Items
)
{
interface
->
setItems
(
mMainWidget
->
selectedItems
());
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
CurrentCollection
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
CurrentCollection
)
{
interface
->
setCurrentCollection
(
mMainWidget
->
currentAddressBook
());
}
if
(
requires
&
PimCommon
::
GenericPluginInterface
::
Collections
)
{
if
(
requires
Features
&
PimCommon
::
GenericPluginInterface
::
Collections
)
{
qCDebug
(
KADDRESSBOOK_LOG
)
<<
"PimCommon::GenericPluginInterface::Collections not implemented"
;
}
}
...
...
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