COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
Adds a functionnality to QStandardItem
class.
More...
#include <FilesListItem.hpp>
Inherits QStandardItem.
Public Member Functions | |
FilesListItem (const QIcon &icon, const QString &text, FilesListItemType type) | |
Constructor. More... | |
FilesListItemType | get_type () const |
Gives the type of this item. More... | |
Private Attributes | |
FilesListItemType | m_type |
Indicates the type of this item. More... | |
Adds a functionnality to QStandardItem
class.
This class inherits from QStandardItem
and add only one functionnality to its base class : the type of this item. An item can be either a file or a directory and it can be usefull to remember this, for exemple, to easily manage icons.
This class is used by NRemoteBrowser
to create items for the list view.
Definition at line 44 of file FilesListItem.hpp.
FilesListItem | ( | const QIcon & | icon, |
const QString & | text, | ||
FilesListItemType | type | ||
) |
Constructor.
Calls the base class constructor with provided icon and text: QStandardItem
(icon, text
) and sets the provided type value to #type
.
icon | Item icon. |
text | Item text. |
type | Item type. |
UnknownType | If the type is unknown. |
Definition at line 19 of file FilesListItem.cpp.
FilesListItemType get_type | ( | ) | const |
Gives the type of this item.
DIRECTORY
if this item is a directory, otherwise returns FILE
. Definition at line 31 of file FilesListItem.cpp.
|
private |
Indicates the type of this item.
The value is either DIRECTORY
or FILE
.
Definition at line 71 of file FilesListItem.hpp.
Send comments to: COOLFluiD Web Admin |