KFileItemList Class
Header: | #include <KFileItemList> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore) |
Public Functions
KFileItem | findByName(const QString &fileName) const |
KFileItem | findByUrl(const QUrl &url) const |
Detailed Description
@class KFileItemList kfileitem.h <KFileItem>
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Member Function Documentation
KFileItem KFileItemList::findByName(const QString &fileName) const
Find a KFileItem by name and return it. @return the item with the given name, or a null-item if none was found (see KFileItem::isNull())
KFileItem KFileItemList::findByUrl(const QUrl &url) const
Find a KFileItem by URL and return it. @return the item with the given URL, or a null-item if none was found (see KFileItem::isNull())