|
using | FileExtension = QString |
| file extension defines
|
|
using | ColorPairs = std::pair< FileExtension, QColor > |
| color pairs
|
|
◆ FileNameProviders()
Construct a new File Name Providers object.
- Parameters
-
◆ data()
std::pair< bool, QVariant > FileNameProviders::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| |
|
overridevirtual |
data provide the data to the views
- Parameters
-
index | the model index |
role | the role of the index |
- Returns
- returns the file name of the index, if the data is not available, it will return with {false, {}}
Implements FileInfoProvider.
◆ provide_section_name()
QString FileNameProviders::provide_section_name |
( |
| ) |
|
|
inlineoverridevirtual |
provide_section_name means everything in the name lol
- Returns
- the section name
Implements FileInfoProvider.
◆ register_special_dircolor()
void FileNameProviders::register_special_dircolor |
( |
const QColor & |
t | ) |
|
|
inline |
register_special_dircolor register the special dirent color
- Note
- this is the default color for the dirent
- Parameters
-
t | the color to be registered |
◆ registerColorPairs()
void FileNameProviders::registerColorPairs |
( |
const ColorPairs & |
pairs | ) |
|
registerColorPairs assigned the color shows
- Parameters
-
pairs | the pairs of the file extension and the color |
The documentation for this class was generated from the following files:
- extern_app/FileRamber/Core/FileNameProviders.h
- extern_app/FileRamber/Core/FileNameProviders.cpp