diff options
| author | Ahmad Samir <[email protected]> | 2021-07-17 14:36:54 +0200 |
|---|---|---|
| committer | Ahmad Samir <[email protected]> | 2021-07-19 09:57:58 +0000 |
| commit | 32c1bd71880b3987700aee2d42bfba83c7a1a3bd (patch) | |
| tree | cfd323824759676deccbab8a036953ff2caf10e5 /src | |
| parent | 0b81b4baf9c7eebbdcf45745077d5a009635b9c8 (diff) | |
Clean up KF API older than 5.82
GIT_SILENT
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 | ||||
| -rw-r--r-- | src/trash/dolphintrash.cpp | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index d4c8199a6..9712b99bc 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -211,11 +211,9 @@ DolphinMainWindow::DolphinMainWindow() : QTimer::singleShot(0, this, &DolphinMainWindow::updateOpenPreferredSearchToolAction); m_fileItemActions.setParentWidget(this); -#if KIO_VERSION >= QT_VERSION_CHECK(5, 82, 0) connect(&m_fileItemActions, &KFileItemActions::error, this, [this](const QString &errorMessage) { showErrorMessage(errorMessage); }); -#endif } DolphinMainWindow::~DolphinMainWindow() diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 8684cda06..df8834556 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -22,11 +22,7 @@ Trash::Trash() // The trash icon must always be updated dependent on whether // the trash is empty or not. We use a KDirLister that automatically // watches for changes if the number of items has been changed. -#if KIO_VERSION < QT_VERSION_CHECK(5, 82, 0) - m_trashDirLister->setAutoErrorHandlingEnabled(false, nullptr); -#else m_trashDirLister->setAutoErrorHandlingEnabled(false); -#endif m_trashDirLister->setDelayedMimeTypes(true); auto trashDirContentChanged = [this]() { bool isTrashEmpty = m_trashDirLister->items().isEmpty(); |
