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
Graphics
Gwenview
Commits
e84a13b8
Commit
e84a13b8
authored
Feb 14, 2021
by
Ahmad Samir
Browse files
Port away from deprecated KIO signals
Port away from KCoreDireLister::redirection(const QUrl &).
parent
65bdad3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/contextmanager.cpp
View file @
e84a13b8
...
...
@@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// KF
#include <KDirLister>
#include <kio_version.h>
#include <KProtocolManager>
// Local
...
...
@@ -117,8 +118,14 @@ ContextManager::ContextManager(SortedDirModel* dirModel, QObject* parent)
connect
(
d
->
mDirModel
,
&
SortedDirModel
::
rowsInserted
,
this
,
&
ContextManager
::
slotRowsInserted
);
#if KIO_VERSION < QT_VERSION_CHECK(5, 80, 0)
connect
(
d
->
mDirModel
->
dirLister
(),
SIGNAL
(
redirection
(
QUrl
)),
SLOT
(
slotDirListerRedirection
(
QUrl
)));
#else
connect
(
d
->
mDirModel
->
dirLister
(),
QOverload
<
const
QUrl
&
,
const
QUrl
&>::
of
(
&
KDirLister
::
redirection
),
this
,
[
this
](
const
QUrl
&
,
const
QUrl
&
newUrl
)
{
slotDirListerRedirection
(
newUrl
);
});
#endif
connect
(
d
->
mDirModel
->
dirLister
(),
QOverload
<>::
of
(
&
KDirLister
::
completed
),
this
,
&
ContextManager
::
slotDirListerCompleted
);
...
...
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