18 #ifndef FILEELEMENTCOLLECTIONITEM2_H 19 #define FILEELEMENTCOLLECTIONITEM2_H 33 enum {
Type = UserType+2 };
36 bool setRootPath(
const QString& path,
bool set_data =
true,
bool hide_element =
false);
40 bool isDir()
const override;
43 QString
name()
const override;
57 void setPathName(
const QString& path_name,
bool set_data =
true,
bool hide_element =
false);
58 void populate(
bool set_data =
true,
bool hide_element =
false);
64 #endif // FILEELEMENTCOLLECTIONITEM2_H The ElementCollectionItem class This class represent a item (a directory or an element) in a element ...
bool isCustomCollection() const
FileElementCollectionItem::isCustomCollection.
QString collectionPath() const override
FileElementCollectionItem::collectionPath.
int type() const override
void addChildAtPath(const QString &collection_name) override
FileElementCollectionItem::addChildAtPath Ask to this item item to add a child with collection name ...
void populate(bool set_data=true, bool hide_element=false)
FileElementCollectionItem::populate Create the childs of this item.
void setPathName(const QString &path_name, bool set_data=true, bool hide_element=false)
FileElementCollectionItem::setPathName Set the name of this item in the file system path...
void setUpIcon() override
FileElementCollectionItem::setUpIcon SetUp the icon of this item. Because icon use several memory...
FileElementCollectionItem()
FileElementCollectionItem::FileElementCollectionItem Constructor.
bool isCommonCollection() const
FileElementCollectionItem::isCommonCollection.
void setUpData() override
FileElementCollectionItem::setUpData SetUp the data of this item.
QString name() const override
FileElementCollectionItem::name.
The FileElementCollectionItem class This class specialise ElementCollectionItem for manage a collecti...
bool setRootPath(const QString &path, bool set_data=true, bool hide_element=false)
FileElementCollectionItem::setRootPath Set path has root path for this file item. Use this function o...
QString localName() override
FileElementCollectionItem::localName.
QString dirPath() const
FileElementCollectionItem::dirPath.
QString fileSystemPath() const
FileElementCollectionItem::fileSystemPath.
bool isCollectionRoot() const override
FileElementCollectionItem::isCollectionRoot.
bool isElement() const override
FileElementCollectionItem::isElement.
bool isDir() const override
FileElementCollectionItem::isDir.