KIO::RenameFileWarningDialog Class
Checks whether renaming a file/folder requires user confirmation and shows the appropriate dialog if so. This class was introduced in Qt 6.31. More...
- Header:
#include <KIO/RenameFileWarningDialog> - Since: Qt 6.31
- CMake:
find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) - Inherits: QObject
List of all members, including inherited members
Public Functions
- RenameFileWarningDialog(const KFileItem &item, const QString &newName, QWidget *parent = nullptr, bool hiddenFilesVisible = false)
- void exec()
Signals
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.