diff options
| author | Elvis Angelaccio <[email protected]> | 2019-05-05 17:20:44 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-05-05 17:53:29 +0200 |
| commit | 9d11e5d4b40feac2272c2a58c714c4902eb1b6e5 (patch) | |
| tree | f8f7d4a5080aa26014199ee4cc99ba431c32686a /src/trash/dolphintrash.cpp | |
| parent | 957a6f4f31d6a50682cb3ac16447dc72498afea9 (diff) | |
Get rid of ugly static_cast usages in connect() calls
Diffstat (limited to 'src/trash/dolphintrash.cpp')
| -rw-r--r-- | src/trash/dolphintrash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index e4a2d947c..957091e54 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -40,7 +40,7 @@ Trash::Trash() bool isTrashEmpty = m_trashDirLister->items().isEmpty(); emit emptinessChanged(isTrashEmpty); }; - connect(m_trashDirLister, static_cast<void(KDirLister::*)()>(&KDirLister::completed), this, trashDirContentChanged); + connect(m_trashDirLister, QOverload<>::of(&KCoreDirLister::completed), this, trashDirContentChanged); connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); } |
