[][src]Struct qt_widgets::QFileSystemModel

#[repr(C)]
pub struct QFileSystemModel { /* fields omitted */ }

The QFileSystemModel class provides a data model for the local filesystem.

C++ class: QFileSystemModel.

C++ documentation:

The QFileSystemModel class provides a data model for the local filesystem.

This class provides access to the local filesystem, providing functions for renaming and removing files and directories, and for creating new directories. In the simplest case, it can be used with a suitable display widget as part of a browser or filter.

QFileSystemModel can be accessed using the standard interface provided by QAbstractItemModel, but it also provides some convenience functions that are specific to a directory model. The fileInfo(), isDir(), fileName() and filePath() functions provide information about the underlying files and directories related to items in the model. Directories can be created and removed using mkdir(), rmdir().

Note: QFileSystemModel requires an instance of QApplication.

Methods

impl QFileSystemModel[src]

pub fn root_path_changed(&self) -> Signal<(*const QString,)>[src]

This signal is emitted whenever the root path has been changed to a newPath.

Returns a built-in Qt signal QFileSystemModel::rootPathChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted whenever the root path has been changed to a newPath.

pub fn file_renamed(
    &self
) -> Signal<(*const QString, *const QString, *const QString)>
[src]

This signal is emitted whenever a file with the oldName is successfully renamed to newName. The file is located in in the directory path.

Returns a built-in Qt signal QFileSystemModel::fileRenamed that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted whenever a file with the oldName is successfully renamed to newName. The file is located in in the directory path.

pub fn directory_loaded(&self) -> Signal<(*const QString,)>[src]

This signal is emitted when the gatherer thread has finished to load the path.

Returns a built-in Qt signal QFileSystemModel::directoryLoaded that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the gatherer thread has finished to load the path.

This function was introduced in Qt 4.7.

pub unsafe fn can_fetch_more(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::canFetchMore().

Calls C++ function: virtual bool QFileSystemModel::canFetchMore(const QModelIndex& parent) const.

C++ documentation:

Reimplemented from QAbstractItemModel::canFetchMore().

pub unsafe fn column_count_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> c_int
[src]

Reimplemented from QAbstractItemModel::columnCount().

Calls C++ function: virtual int QFileSystemModel::columnCount(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

pub unsafe fn column_count_0a(&self) -> c_int[src]

Reimplemented from QAbstractItemModel::columnCount().

Calls C++ function: virtual int QFileSystemModel::columnCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

pub unsafe fn data_2a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    role: c_int
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::data().

Calls C++ function: virtual QVariant QFileSystemModel::data(const QModelIndex& index, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

See also setData().

pub unsafe fn data_1a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::data().

Calls C++ function: virtual QVariant QFileSystemModel::data(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

See also setData().

pub unsafe fn drop_mime_data(
    &mut self,
    data: impl CastInto<Ptr<QMimeData>>,
    action: DropAction,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::dropMimeData().

Calls C++ function: virtual bool QFileSystemModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::dropMimeData().

Handles the data supplied by a drag and drop operation that ended with the given action over the row in the model specified by the row and column and by the parent index.

See also supportedDropActions().

pub unsafe fn fetch_more(&mut self, parent: impl CastInto<Ref<QModelIndex>>)[src]

Reimplemented from QAbstractItemModel::fetchMore().

Calls C++ function: virtual void QFileSystemModel::fetchMore(const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::fetchMore().

pub unsafe fn file_icon(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QIcon>
[src]

Returns the icon for the item stored in the model under the given index.

Calls C++ function: QIcon QFileSystemModel::fileIcon(const QModelIndex& index) const.

C++ documentation:

Returns the icon for the item stored in the model under the given index.

pub unsafe fn file_info(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QFileInfo>
[src]

Returns the QFileInfo for the item stored in the model under the given index.

Calls C++ function: QFileInfo QFileSystemModel::fileInfo(const QModelIndex& index) const.

C++ documentation:

Returns the QFileInfo for the item stored in the model under the given index.

pub unsafe fn file_name(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QString>
[src]

Returns the file name for the item stored in the model under the given index.

Calls C++ function: QString QFileSystemModel::fileName(const QModelIndex& index) const.

C++ documentation:

Returns the file name for the item stored in the model under the given index.

pub unsafe fn file_path(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QString>
[src]

Returns the path of the item stored in the model under the index given.

Calls C++ function: QString QFileSystemModel::filePath(const QModelIndex& index) const.

C++ documentation:

Returns the path of the item stored in the model under the index given.

pub unsafe fn filter(&self) -> QFlags<Filter>[src]

Returns the filter specified for the directory model.

Calls C++ function: QFlags<QDir::Filter> QFileSystemModel::filter() const.

C++ documentation:

Returns the filter specified for the directory model.

If a filter has not been set, the default filter is QDir::AllEntries | QDir::NoDotAndDotDot | QDir::AllDirs.

See also setFilter() and QDir::Filters.

pub unsafe fn flags(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> QFlags<ItemFlag>
[src]

Reimplemented from QAbstractItemModel::flags().

Calls C++ function: virtual QFlags<Qt::ItemFlag> QFileSystemModel::flags(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::flags().

pub unsafe fn has_children_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::hasChildren().

Calls C++ function: virtual bool QFileSystemModel::hasChildren(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

pub unsafe fn has_children_0a(&self) -> bool[src]

Reimplemented from QAbstractItemModel::hasChildren().

Calls C++ function: virtual bool QFileSystemModel::hasChildren() const.

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

pub unsafe fn header_data_3a(
    &self,
    section: c_int,
    orientation: Orientation,
    role: c_int
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QFileSystemModel::headerData(int section, Qt::Orientation orientation, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

pub unsafe fn header_data_2a(
    &self,
    section: c_int,
    orientation: Orientation
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QFileSystemModel::headerData(int section, Qt::Orientation orientation) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

pub unsafe fn icon_provider(&self) -> MutPtr<QFileIconProvider>[src]

Returns the file icon provider for this directory model.

Calls C++ function: QFileIconProvider* QFileSystemModel::iconProvider() const.

C++ documentation:

Returns the file icon provider for this directory model.

See also setIconProvider().

pub unsafe fn index_2_int_q_model_index(
    &self,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::index().

Calls C++ function: virtual QModelIndex QFileSystemModel::index(int row, int column, const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

pub unsafe fn index_q_string_int(
    &self,
    path: impl CastInto<Ref<QString>>,
    column: c_int
) -> CppBox<QModelIndex>
[src]

This is an overloaded function.

Calls C++ function: QModelIndex QFileSystemModel::index(const QString& path, int column = …) const.

C++ documentation:

This is an overloaded function.

Returns the model item index for the given path and column.

pub unsafe fn index_2_int(
    &self,
    row: c_int,
    column: c_int
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::index().

Calls C++ function: virtual QModelIndex QFileSystemModel::index(int row, int column) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

pub unsafe fn index_q_string(
    &self,
    path: impl CastInto<Ref<QString>>
) -> CppBox<QModelIndex>
[src]

This is an overloaded function.

Calls C++ function: QModelIndex QFileSystemModel::index(const QString& path) const.

C++ documentation:

This is an overloaded function.

Returns the model item index for the given path and column.

pub unsafe fn is_dir(&self, index: impl CastInto<Ref<QModelIndex>>) -> bool[src]

Returns true if the model item index represents a directory; otherwise returns false.

Calls C++ function: bool QFileSystemModel::isDir(const QModelIndex& index) const.

C++ documentation:

Returns true if the model item index represents a directory; otherwise returns false.

pub unsafe fn is_read_only(&self) -> bool[src]

This property holds whether the directory model allows writing to the file system

Calls C++ function: bool QFileSystemModel::isReadOnly() const.

C++ documentation:

This property holds whether the directory model allows writing to the file system

If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories.

This property is true by default

Access functions:

bool isReadOnly() const
void setReadOnly(bool enable)

pub unsafe fn last_modified(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QDateTime>
[src]

Returns the date and time when index was last modified.

Calls C++ function: QDateTime QFileSystemModel::lastModified(const QModelIndex& index) const.

C++ documentation:

Returns the date and time when index was last modified.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QFileSystemModel::metaObject() const.

pub unsafe fn mime_data(
    &self,
    indexes: impl CastInto<Ref<QListOfQModelIndex>>
) -> MutPtr<QMimeData>
[src]

Reimplemented from QAbstractItemModel::mimeData().

Calls C++ function: virtual QMimeData* QFileSystemModel::mimeData(const QList<QModelIndex>& indexes) const.

C++ documentation:

Reimplemented from QAbstractItemModel::mimeData().

Returns an object that contains a serialized description of the specified indexes. The format used to describe the items corresponding to the indexes is obtained from the mimeTypes() function.

If the list of indexes is empty, 0 is returned rather than a serialized empty list.

pub unsafe fn mime_types(&self) -> CppBox<QStringList>[src]

Reimplemented from QAbstractItemModel::mimeTypes().

Calls C++ function: virtual QStringList QFileSystemModel::mimeTypes() const.

C++ documentation:

Reimplemented from QAbstractItemModel::mimeTypes().

Returns a list of MIME types that can be used to describe a list of items in the model.

pub unsafe fn mkdir(
    &mut self,
    parent: impl CastInto<Ref<QModelIndex>>,
    name: impl CastInto<Ref<QString>>
) -> CppBox<QModelIndex>
[src]

Create a directory with the name in the parent model index.

Calls C++ function: QModelIndex QFileSystemModel::mkdir(const QModelIndex& parent, const QString& name).

C++ documentation:

Create a directory with the name in the parent model index.

pub unsafe fn my_computer_1a(&self, role: c_int) -> CppBox<QVariant>[src]

Returns the data stored under the given role for the item "My Computer".

Calls C++ function: QVariant QFileSystemModel::myComputer(int role = …) const.

C++ documentation:

Returns the data stored under the given role for the item "My Computer".

See also Qt::ItemDataRole.

pub unsafe fn my_computer_0a(&self) -> CppBox<QVariant>[src]

Returns the data stored under the given role for the item "My Computer".

Calls C++ function: QVariant QFileSystemModel::myComputer() const.

C++ documentation:

Returns the data stored under the given role for the item "My Computer".

See also Qt::ItemDataRole.

pub unsafe fn name_filter_disables(&self) -> bool[src]

This property holds whether files that don't pass the name filter are hidden or disabled

Calls C++ function: bool QFileSystemModel::nameFilterDisables() const.

C++ documentation:

This property holds whether files that don't pass the name filter are hidden or disabled

This property is true by default

Access functions:

bool nameFilterDisables() const
void setNameFilterDisables(bool enable)

pub unsafe fn name_filters(&self) -> CppBox<QStringList>[src]

Returns a list of filters applied to the names in the model.

Calls C++ function: QStringList QFileSystemModel::nameFilters() const.

C++ documentation:

Returns a list of filters applied to the names in the model.

See also setNameFilters().

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QFileSystemModel>
[src]

Constructs a file system model with the given parent.

Calls C++ function: [constructor] void QFileSystemModel::QFileSystemModel(QObject* parent = …).

C++ documentation:

Constructs a file system model with the given parent.

pub unsafe fn new_0a() -> CppBox<QFileSystemModel>[src]

The QFileSystemModel class provides a data model for the local filesystem.

Calls C++ function: [constructor] void QFileSystemModel::QFileSystemModel().

C++ documentation:

The QFileSystemModel class provides a data model for the local filesystem.

This class provides access to the local filesystem, providing functions for renaming and removing files and directories, and for creating new directories. In the simplest case, it can be used with a suitable display widget as part of a browser or filter.

QFileSystemModel can be accessed using the standard interface provided by QAbstractItemModel, but it also provides some convenience functions that are specific to a directory model. The fileInfo(), isDir(), fileName() and filePath() functions provide information about the underlying files and directories related to items in the model. Directories can be created and removed using mkdir(), rmdir().

Note: QFileSystemModel requires an instance of QApplication.

pub unsafe fn parent(
    &self,
    child: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::parent().

Calls C++ function: virtual QModelIndex QFileSystemModel::parent(const QModelIndex& child) const.

C++ documentation:

Reimplemented from QAbstractItemModel::parent().

pub unsafe fn permissions(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> QFlags<Permission>
[src]

Returns the complete OR-ed together combination of QFile::Permission for the index.

Calls C++ function: QFlags<QFileDevice::Permission> QFileSystemModel::permissions(const QModelIndex& index) const.

C++ documentation:

Returns the complete OR-ed together combination of QFile::Permission for the index.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QFileSystemModel::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QFileSystemModel::qt_metacast(const char* arg1).

pub unsafe fn remove(&mut self, index: impl CastInto<Ref<QModelIndex>>) -> bool[src]

Removes the model item index from the file system model and deletes the corresponding file from the file system, returning true if successful. If the item cannot be removed, false is returned.

Calls C++ function: bool QFileSystemModel::remove(const QModelIndex& index).

C++ documentation:

Removes the model item index from the file system model and deletes the corresponding file from the file system, returning true if successful. If the item cannot be removed, false is returned.

Warning: This function deletes files from the file system; it does not move them to a location where they can be recovered.

See also rmdir().

This property holds whether the directory model should resolve symbolic links

Calls C++ function: bool QFileSystemModel::resolveSymlinks() const.

C++ documentation:

This property holds whether the directory model should resolve symbolic links

This is only relevant on Windows.

By default, this property is true.

Access functions:

bool resolveSymlinks() const
void setResolveSymlinks(bool enable)

pub unsafe fn rmdir(&mut self, index: impl CastInto<Ref<QModelIndex>>) -> bool[src]

Removes the directory corresponding to the model item index in the file system model and deletes the corresponding directory from the file system, returning true if successful. If the directory cannot be removed, false is returned.

Calls C++ function: bool QFileSystemModel::rmdir(const QModelIndex& index).

C++ documentation:

Removes the directory corresponding to the model item index in the file system model and deletes the corresponding directory from the file system, returning true if successful. If the directory cannot be removed, false is returned.

Warning: This function deletes directories from the file system; it does not move them to a location where they can be recovered.

See also remove().

pub unsafe fn root_directory(&self) -> CppBox<QDir>[src]

The currently set directory

Calls C++ function: QDir QFileSystemModel::rootDirectory() const.

C++ documentation:

The currently set directory

See also rootPath().

pub unsafe fn root_path(&self) -> CppBox<QString>[src]

The currently set root path

Calls C++ function: QString QFileSystemModel::rootPath() const.

C++ documentation:

The currently set root path

See also setRootPath() and rootDirectory().

pub unsafe fn row_count_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> c_int
[src]

Reimplemented from QAbstractItemModel::rowCount().

Calls C++ function: virtual int QFileSystemModel::rowCount(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

pub unsafe fn row_count_0a(&self) -> c_int[src]

Reimplemented from QAbstractItemModel::rowCount().

Calls C++ function: virtual int QFileSystemModel::rowCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

pub unsafe fn set_data_3a(
    &mut self,
    index: impl CastInto<Ref<QModelIndex>>,
    value: impl CastInto<Ref<QVariant>>,
    role: c_int
) -> bool
[src]

Reimplemented from QAbstractItemModel::setData().

Calls C++ function: virtual bool QFileSystemModel::setData(const QModelIndex& index, const QVariant& value, int role = …).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

See also data().

pub unsafe fn set_data_2a(
    &mut self,
    index: impl CastInto<Ref<QModelIndex>>,
    value: impl CastInto<Ref<QVariant>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::setData().

Calls C++ function: virtual bool QFileSystemModel::setData(const QModelIndex& index, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

See also data().

pub unsafe fn set_filter(&mut self, filters: QFlags<Filter>)[src]

Sets the directory model's filter to that specified by filters.

Calls C++ function: void QFileSystemModel::setFilter(QFlags<QDir::Filter> filters).

C++ documentation:

Sets the directory model's filter to that specified by filters.

Note that the filter you set should always include the QDir::AllDirs enum value, otherwise QFileSystemModel won't be able to read the directory structure.

See also filter() and QDir::Filters.

pub unsafe fn set_icon_provider(
    &mut self,
    provider: impl CastInto<MutPtr<QFileIconProvider>>
)
[src]

Sets the provider of file icons for the directory model.

Calls C++ function: void QFileSystemModel::setIconProvider(QFileIconProvider* provider).

C++ documentation:

Sets the provider of file icons for the directory model.

See also iconProvider().

pub unsafe fn set_name_filter_disables(&mut self, enable: bool)[src]

This property holds whether files that don't pass the name filter are hidden or disabled

Calls C++ function: void QFileSystemModel::setNameFilterDisables(bool enable).

C++ documentation:

This property holds whether files that don't pass the name filter are hidden or disabled

This property is true by default

Access functions:

bool nameFilterDisables() const
void setNameFilterDisables(bool enable)

pub unsafe fn set_name_filters(
    &mut self,
    filters: impl CastInto<Ref<QStringList>>
)
[src]

Sets the name filters to apply against the existing files.

Calls C++ function: void QFileSystemModel::setNameFilters(const QStringList& filters).

C++ documentation:

Sets the name filters to apply against the existing files.

See also nameFilters().

pub unsafe fn set_read_only(&mut self, enable: bool)[src]

This property holds whether the directory model allows writing to the file system

Calls C++ function: void QFileSystemModel::setReadOnly(bool enable).

C++ documentation:

This property holds whether the directory model allows writing to the file system

If this property is set to false, the directory model will allow renaming, copying and deleting of files and directories.

This property is true by default

Access functions:

bool isReadOnly() const
void setReadOnly(bool enable)

This property holds whether the directory model should resolve symbolic links

Calls C++ function: void QFileSystemModel::setResolveSymlinks(bool enable).

C++ documentation:

This property holds whether the directory model should resolve symbolic links

This is only relevant on Windows.

By default, this property is true.

Access functions:

bool resolveSymlinks() const
void setResolveSymlinks(bool enable)

pub unsafe fn set_root_path(
    &mut self,
    path: impl CastInto<Ref<QString>>
) -> CppBox<QModelIndex>
[src]

Sets the directory that is being watched by the model to newPath by installing a file system watcher on it. Any changes to files and directories within this directory will be reflected in the model.

Calls C++ function: QModelIndex QFileSystemModel::setRootPath(const QString& path).

C++ documentation:

Sets the directory that is being watched by the model to newPath by installing a file system watcher on it. Any changes to files and directories within this directory will be reflected in the model.

If the path is changed, the rootPathChanged() signal will be emitted.

Note: This function does not change the structure of the model or modify the data available to views. In other words, the "root" of the model is not changed to include only files and directories within the directory specified by newPath in the file system.

See also rootPath().

pub unsafe fn sibling(
    &self,
    row: c_int,
    column: c_int,
    idx: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::sibling().

Calls C++ function: virtual QModelIndex QFileSystemModel::sibling(int row, int column, const QModelIndex& idx) const.

C++ documentation:

Reimplemented from QAbstractItemModel::sibling().

pub unsafe fn size(&self, index: impl CastInto<Ref<QModelIndex>>) -> i64[src]

Returns the size in bytes of index. If the file does not exist, 0 is returned.

Calls C++ function: qint64 QFileSystemModel::size(const QModelIndex& index) const.

C++ documentation:

Returns the size in bytes of index. If the file does not exist, 0 is returned.

pub unsafe fn sort_2a(&mut self, column: c_int, order: SortOrder)[src]

Reimplemented from QAbstractItemModel::sort().

Calls C++ function: virtual void QFileSystemModel::sort(int column, Qt::SortOrder order = …).

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

pub unsafe fn sort_1a(&mut self, column: c_int)[src]

Reimplemented from QAbstractItemModel::sort().

Calls C++ function: virtual void QFileSystemModel::sort(int column).

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn supported_drop_actions(&self) -> QFlags<DropAction>[src]

Reimplemented from QAbstractItemModel::supportedDropActions().

Calls C++ function: virtual QFlags<Qt::DropAction> QFileSystemModel::supportedDropActions() const.

C++ documentation:

Reimplemented from QAbstractItemModel::supportedDropActions().

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QFileSystemModel::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QFileSystemModel::trUtf8(const char* s, const char* c, int n).

pub unsafe fn type_(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QString>
[src]

Returns the type of file index such as "Directory" or "JPEG file".

Calls C++ function: QString QFileSystemModel::type(const QModelIndex& index) const.

C++ documentation:

Returns the type of file index such as "Directory" or "JPEG file".

Trait Implementations

impl Deref for QFileSystemModel[src]

type Target = QAbstractItemModel

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractItemModel[src]

Calls C++ function: QAbstractItemModel* static_cast<QAbstractItemModel*>(QFileSystemModel* ptr).

impl DerefMut for QFileSystemModel[src]

fn deref_mut(&mut self) -> &mut QAbstractItemModel[src]

Calls C++ function: QAbstractItemModel* static_cast<QAbstractItemModel*>(QFileSystemModel* ptr).

impl StaticUpcast<QAbstractItemModel> for QFileSystemModel[src]

unsafe fn static_upcast(ptr: Ptr<QFileSystemModel>) -> Ptr<QAbstractItemModel>[src]

Calls C++ function: QAbstractItemModel* static_cast<QAbstractItemModel*>(QFileSystemModel* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QFileSystemModel>
) -> MutPtr<QAbstractItemModel>
[src]

Calls C++ function: QAbstractItemModel* static_cast<QAbstractItemModel*>(QFileSystemModel* ptr).

impl StaticUpcast<QObject> for QFileSystemModel[src]

unsafe fn static_upcast(ptr: Ptr<QFileSystemModel>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QFileSystemModel* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFileSystemModel>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QFileSystemModel* ptr).

impl StaticDowncast<QFileSystemModel> for QAbstractItemModel[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractItemModel>) -> Ptr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* static_cast<QFileSystemModel*>(QAbstractItemModel* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAbstractItemModel>
) -> MutPtr<QFileSystemModel>
[src]

Calls C++ function: QFileSystemModel* static_cast<QFileSystemModel*>(QAbstractItemModel* ptr).

impl StaticDowncast<QFileSystemModel> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* static_cast<QFileSystemModel*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* static_cast<QFileSystemModel*>(QObject* ptr).

impl DynamicCast<QFileSystemModel> for QAbstractItemModel[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractItemModel>) -> Ptr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* dynamic_cast<QFileSystemModel*>(QAbstractItemModel* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAbstractItemModel>
) -> MutPtr<QFileSystemModel>
[src]

Calls C++ function: QFileSystemModel* dynamic_cast<QFileSystemModel*>(QAbstractItemModel* ptr).

impl DynamicCast<QFileSystemModel> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* dynamic_cast<QFileSystemModel*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QFileSystemModel>[src]

Calls C++ function: QFileSystemModel* dynamic_cast<QFileSystemModel*>(QObject* ptr).

impl CppDeletable for QFileSystemModel[src]

unsafe fn delete(&mut self)[src]

Destroys this file system model.

Calls C++ function: virtual [destructor] void QFileSystemModel::~QFileSystemModel().

C++ documentation:

Destroys this file system model.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]