Wt examples: FileModel Class Reference

Wt examples 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
FileModel Class Reference

A specialized standard item model which report a specific drag and drop mime type. More...

Inheritance diagram for FileModel:
[legend]

## Public Member Functions
| FileModel ()
| Constructor.
virtual std::string | mimeType () const
| Return the mime type.

## Static Public Attributes
static WString | dateDisplayFormat
| Date display format.
static WString | dateEditFormat
| Date edit format.

## Detailed Description

A specialized standard item model which report a specific drag and drop mime type.

A specific drag and drop mime type instead of the generic abstract item model is returned by the model.

Definition at line 51 of file TreeViewDragDrop.C.

## Constructor & Destructor Documentation

## ◆ FileModel()

FileModel::FileModel | ( |  | ) |
| inline

Constructor.

Definition at line 56 of file TreeViewDragDrop.C.

57 : WStandardItemModel() { }

## Member Function Documentation

## ◆ mimeType()

virtual std::string FileModel::mimeType | ( |  | ) | const
| inlinevirtual

Return the mime type.

Definition at line 61 of file TreeViewDragDrop.C.

61 {
62 return FolderView::FileSelectionMimeType;
63 }
FolderView::FileSelectionMimeType
static const char * FileSelectionMimeType
Constant that indicates the mime type for a selection of files.
Definition FolderView.h:28

## Member Data Documentation

## ◆ dateDisplayFormat

WString FileModel::dateDisplayFormat
| static

Date display format.

Definition at line 66 of file TreeViewDragDrop.C.

## ◆ dateEditFormat

WString FileModel::dateEditFormat
| static

Date edit format.

Definition at line 69 of file TreeViewDragDrop.C.

The documentation for this class was generated from the following file:

- treeview-dragdrop/TreeViewDragDrop.C