KIO::RenameFileWarningDialog Class

Checks whether renaming a file/folder requires user confirmation and shows the appropriate dialog if so. More...

Header: #include <KIO/RenameFileWarningDialog>
CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets)
Since: 6.31
Inherits: QObject

Public Functions

RenameFileWarningDialog(const KFileItem &item, const QString &newName, QWidget *parent = nullptr, bool hiddenFilesVisible = false)
void exec()

Signals

void result(bool accepted)

Detailed Description

Member Function Documentation

[explicit] RenameFileWarningDialog::RenameFileWarningDialog(const KFileItem &item, const QString &newName, QWidget *parent = nullptr, bool hiddenFilesVisible = false)

hiddenFilesVisible suppresses the hidden-file warning when the view already shows hidden files.

void RenameFileWarningDialog::exec()

Connect to result() before calling this: it may be emitted synchronously.

[signal] void RenameFileWarningDialog::result(bool accepted)

accepted is true if the rename should proceed.