KFile Class
KFile is a class which provides a namespace for some enumerated values associated with the kfile library. You will never need to construct a KFile object itself. More...
Header: | #include <KFile> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) |
Public Types
enum | FileView { Default, Simple, Detail, SeparateDirs, PreviewContents, …, DetailTree } |
enum | Mode { File, Directory, Files, ExistingOnly, LocalOnly } |
flags | Modes |
enum | SelectionMode { Single, Multi, Extended, NoSelection } |
Static Public Members
Detailed Description
Member Type Documentation
enum KFile::FileView
Constant | Value |
KFile::Default | 0 |
KFile::Simple | 1 |
KFile::Detail | 2 |
KFile::SeparateDirs | 4 |
KFile::PreviewContents | 8 |
KFile::PreviewInfo | 16 |
KFile::Tree | 32 |
KFile::DetailTree | 64 |
enum KFile::Mode
flags KFile::Modes
Modes of operation for the dialog.
Constant | Value | Description |
KFile::File | 1 | Get a single file name from the user. |
KFile::Directory | 2 | Get a directory name from the user. |
KFile::Files | 4 | Get multiple file names from the user. |
KFile::ExistingOnly | 8 | Never return a filename which does not exist yet |
KFile::LocalOnly | 16 | Don't return remote filenames |
The Modes type is a typedef for QFlags<Mode>. It stores an OR combination of Mode values.
enum KFile::SelectionMode
Constant | Value |
KFile::Single | 1 |
KFile::Multi | 2 |
KFile::Extended | 4 |
KFile::NoSelection | 8 |