KDirLister Class
Subclass of KCoreDirLister which uses QWidgets to show error messages and to associate jobs with windows. More...
Header: | #include <KDirLister> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) |
Inherits: | KCoreDirLister |
Public Functions
KDirLister(QObject *parent = nullptr) | |
virtual | ~KDirLister() override |
bool | autoErrorHandlingEnabled() const |
QWidget * | mainWindow() |
void | setMainWindow(QWidget *window) |
Detailed Description
Member Function Documentation
[explicit]
KDirLister::KDirLister(QObject *parent = nullptr)
Create a directory lister.
[override virtual noexcept]
KDirLister::~KDirLister()
Destroy the directory lister.
bool KDirLister::autoErrorHandlingEnabled() const
Check whether auto error handling is enabled. If enabled, it will show an error dialog to the user when an error occurs. It is turned on by default.
Returns true
if auto error handling is enabled, false
otherwise
See also setAutoErrorHandlingEnabled().
QWidget *KDirLister::mainWindow()
Returns the main window associated with this object, or nullptr
if there is none
See also setMainWindow().
void KDirLister::setMainWindow(QWidget *window)
Pass the main window this object is associated with this is used for caching authentication data
window the window to associate with, nullptr
to disassociate
See also mainWindow().