Clean up KF API older than 5.82

GIT_SILENT
This commit is contained in:
Ahmad Samir 2021-07-17 14:36:54 +02:00
parent 0b81b4baf9
commit 32c1bd7188
2 changed files with 0 additions and 6 deletions

View file

@ -211,11 +211,9 @@ DolphinMainWindow::DolphinMainWindow() :
QTimer::singleShot(0, this, &DolphinMainWindow::updateOpenPreferredSearchToolAction); QTimer::singleShot(0, this, &DolphinMainWindow::updateOpenPreferredSearchToolAction);
m_fileItemActions.setParentWidget(this); m_fileItemActions.setParentWidget(this);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 82, 0)
connect(&m_fileItemActions, &KFileItemActions::error, this, [this](const QString &errorMessage) { connect(&m_fileItemActions, &KFileItemActions::error, this, [this](const QString &errorMessage) {
showErrorMessage(errorMessage); showErrorMessage(errorMessage);
}); });
#endif
} }
DolphinMainWindow::~DolphinMainWindow() DolphinMainWindow::~DolphinMainWindow()

View file

@ -22,11 +22,7 @@ Trash::Trash()
// The trash icon must always be updated dependent on whether // The trash icon must always be updated dependent on whether
// the trash is empty or not. We use a KDirLister that automatically // the trash is empty or not. We use a KDirLister that automatically
// watches for changes if the number of items has been changed. // 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); m_trashDirLister->setAutoErrorHandlingEnabled(false);
#endif
m_trashDirLister->setDelayedMimeTypes(true); m_trashDirLister->setDelayedMimeTypes(true);
auto trashDirContentChanged = [this]() { auto trashDirContentChanged = [this]() {
bool isTrashEmpty = m_trashDirLister->items().isEmpty(); bool isTrashEmpty = m_trashDirLister->items().isEmpty();