54 I_ASSIGN(m_filterInfoCompPtr,
"FilterInfo",
"Provides information about supported files used to filter shown files",
false,
"FilterInfo");
55 I_ASSIGN(m_rootPathParamCompPtr,
"RootPath",
"Sets the root path",
false,
"RootPath");
56 I_ASSIGN_TO(m_rootPathParamModelCompPtr, m_rootPathParamCompPtr,
false);
57 I_ASSIGN(m_showUserFilterAttrPtr,
"ShowUserFilter",
"If activated user filter line will be shown",
true,
false);
58 I_ASSIGN(m_showFileTypeAttrPtr,
"ShowFileType",
"Show file type description",
true,
false);
59 I_ASSIGN(m_showFileModificationTimeAttrPtr,
"ShowFileModificationTime",
"If activated file modification time stamp will be shown for each file",
true,
false);
60 I_ASSIGN(m_useSystemDecoratedIconsAttrPtr,
"UseSystemDecoratedIcons",
"If enabled, system decorated icons are used",
false,
false);
61 I_ASSIGN(m_allowOpenFileAttrPtr,
"AllowOpenFile",
"If enabled, the file will be opened by operation system shell",
false,
false);
86 void OnFilterChanged();
87 void OnNewDirLoaded(
const QString& path);
88 void OnSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
89 void OnDoubleClicked(
const QModelIndex& index);
95 I_ATTR(
bool, m_showUserFilterAttrPtr);
96 I_ATTR(
bool, m_showFileTypeAttrPtr);
97 I_ATTR(
bool, m_showFileModificationTimeAttrPtr);
98 I_ATTR(
bool, m_useSystemDecoratedIconsAttrPtr);
99 I_ATTR(
bool, m_allowOpenFileAttrPtr);
101 class FileIconProvider:
public QFileIconProvider
107 virtual QIcon icon(
const QFileInfo& fileInfo)
const override;
112 FileIconProvider m_fileIconProvider;
114 QFileSystemModel m_fileSystemModel;