[][src]Struct qt_widgets::QDirModel

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

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

C++ class: QDirModel.

C++ documentation:

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

The usage of QDirModel is not recommended anymore. The QFileSystemModel class is a more performant alternative.

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 filer.

QDirModel keeps a cache with file information. The cache needs to be updated with refresh().

QDirModel 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() and isDir() functions provide information about the underlying files and directories related to items in the model.

Directories can be created and removed using mkdir(), rmdir(), and the model will be automatically updated to take the changes into account.

Note: QDirModel requires an instance of QApplication.

Methods

impl QDirModel[src]

pub fn slot_refresh(&self) -> Receiver<(*const QModelIndex,)>[src]

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

Returns a built-in Qt slot QDirModel::refresh that can be passed to qt_core::Signal::connect.

C++ documentation:

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

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

Reimplemented from QAbstractItemModel::columnCount().

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

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

Returns the number of columns in the parent model item.

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

Reimplemented from QAbstractItemModel::columnCount().

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

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

Returns the number of columns in the parent model item.

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 QDirModel::data(const QModelIndex& index, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

Returns the data for the model item index with the given role.

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 QDirModel::data(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

Returns the data for the model item index with the given role.

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 QDirModel::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.

Returns true if the drop was successful, and false otherwise.

See also supportedDropActions().

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

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

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

C++ documentation:

Returns the icons 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 file information for the specified model index.

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

C++ documentation:

Returns the file information for the specified model index.

Note: If the model index represents a symbolic link in the underlying filing system, the file information returned will contain information about the symbolic link itself, regardless of whether resolveSymlinks is enabled or not.

See also QFileInfo::symLinkTarget().

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

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

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

C++ documentation:

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

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 QDirModel::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 specification for the directory model.

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

C++ documentation:

Returns the filter specification for the directory model.

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> QDirModel::flags(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::flags().

Returns the item flags for the given index in the model.

See also Qt::ItemFlags.

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

Reimplemented from QAbstractItemModel::hasChildren().

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

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

Returns true if the parent model item has children; otherwise returns false.

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

Reimplemented from QAbstractItemModel::hasChildren().

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

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

Returns true if the parent model item has children; otherwise returns false.

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 QDirModel::headerData(int section, Qt::Orientation orientation, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

Returns the data stored under the given role for the specified section of the header with the given orientation.

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

Reimplemented from QAbstractItemModel::headerData().

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

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

Returns the data stored under the given role for the specified section of the header with the given orientation.

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

Returns the file icon provider for this directory model.

Calls C++ function: QFileIconProvider* QDirModel::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 QDirModel::index(int row, int column, const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

Returns the model item index for the item in the parent with the given row and column.

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 QDirModel::index(const QString& path, int column = …) const.

C++ documentation:

This is an overloaded function.

Returns the model item index for the given path.

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 QDirModel::index(int row, int column) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

Returns the model item index for the item in the parent with the given row and column.

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

This is an overloaded function.

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

C++ documentation:

This is an overloaded function.

Returns the model item index for the given path.

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 QDirModel::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 QDirModel::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 lazy_child_count(&self) -> bool[src]

This property holds whether the directory model optimizes the hasChildren function to only check if the item is a directory.

Calls C++ function: bool QDirModel::lazyChildCount() const.

C++ documentation:

This property holds whether the directory model optimizes the hasChildren function to only check if the item is a directory.

If this property is set to false, the directory model will make sure that a directory actually containes any files before reporting that it has children. Otherwise the directory model will report that an item has children if the item is a directory.

This property is false by default

Access functions:

bool lazyChildCount() const
void setLazyChildCount(bool enable)

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

Calls C++ function: virtual const QMetaObject* QDirModel::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* QDirModel::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 QDirModel::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 item.

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

C++ documentation:

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

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 QDirModel::nameFilters() const.

C++ documentation:

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

See also setNameFilters().

pub unsafe fn new_4a(
    name_filters: impl CastInto<Ref<QStringList>>,
    filters: QFlags<Filter>,
    sort: QFlags<SortFlag>,
    parent: impl CastInto<MutPtr<QObject>>
) -> CppBox<QDirModel>
[src]

Constructs a new directory model with the given parent. Only those files matching the nameFilters and the filters are included in the model. The sort order is given by the sort flags.

Calls C++ function: [constructor] void QDirModel::QDirModel(const QStringList& nameFilters, QFlags<QDir::Filter> filters, QFlags<QDir::SortFlag> sort, QObject* parent = …).

C++ documentation:

Constructs a new directory model with the given parent. Only those files matching the nameFilters and the filters are included in the model. The sort order is given by the sort flags.

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

Constructs a directory model with the given parent.

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

C++ documentation:

Constructs a directory model with the given parent.

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

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

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

C++ documentation:

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

The usage of QDirModel is not recommended anymore. The QFileSystemModel class is a more performant alternative.

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 filer.

QDirModel keeps a cache with file information. The cache needs to be updated with refresh().

QDirModel 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() and isDir() functions provide information about the underlying files and directories related to items in the model.

Directories can be created and removed using mkdir(), rmdir(), and the model will be automatically updated to take the changes into account.

Note: QDirModel requires an instance of QApplication.

pub unsafe fn new_3a(
    name_filters: impl CastInto<Ref<QStringList>>,
    filters: QFlags<Filter>,
    sort: QFlags<SortFlag>
) -> CppBox<QDirModel>
[src]

Constructs a new directory model with the given parent. Only those files matching the nameFilters and the filters are included in the model. The sort order is given by the sort flags.

Calls C++ function: [constructor] void QDirModel::QDirModel(const QStringList& nameFilters, QFlags<QDir::Filter> filters, QFlags<QDir::SortFlag> sort).

C++ documentation:

Constructs a new directory model with the given parent. Only those files matching the nameFilters and the filters are included in the model. The sort order is given by the sort flags.

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

Reimplemented from QAbstractItemModel::parent().

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

C++ documentation:

Reimplemented from QAbstractItemModel::parent().

Return the parent of the given child model item.

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 QDirModel::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* QDirModel::qt_metacast(const char* arg1).

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

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

Calls C++ function: [slot] void QDirModel::refresh(const QModelIndex& parent = …).

C++ documentation:

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

pub unsafe fn refresh_0a(&mut self)[src]

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

Calls C++ function: [slot] void QDirModel::refresh().

C++ documentation:

QDirModel caches file information. This function updates the cache. The parent parameter is the directory from which the model is updated; the default value will update the model from root directory of the file system (the entire model).

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

Removes the model item index from the directory 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 QDirModel::remove(const QModelIndex& index).

C++ documentation:

Removes the model item index from the directory 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 QDirModel::resolveSymlinks() const.

C++ documentation:

This property holds whether the directory model should resolve symbolic links

This is only relevant on operating systems that support symbolic links.

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 directory 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 QDirModel::rmdir(const QModelIndex& index).

C++ documentation:

Removes the directory corresponding to the model item index in the directory 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 row_count_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> c_int
[src]

Reimplemented from QAbstractItemModel::rowCount().

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

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

Returns the number of rows in the parent model item.

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

Reimplemented from QAbstractItemModel::rowCount().

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

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

Returns the number of rows in the parent model item.

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 QDirModel::setData(const QModelIndex& index, const QVariant& value, int role = …).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

Sets the data for the model item index with the given role to the data referenced by the value. Returns true if successful; otherwise returns false.

See also data() and Qt::ItemDataRole.

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 QDirModel::setData(const QModelIndex& index, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

Sets the data for the model item index with the given role to the data referenced by the value. Returns true if successful; otherwise returns false.

See also data() and Qt::ItemDataRole.

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 QDirModel::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 QDirModel 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 QDirModel::setIconProvider(QFileIconProvider* provider).

C++ documentation:

Sets the provider of file icons for the directory model.

See also iconProvider().

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

This property holds whether the directory model optimizes the hasChildren function to only check if the item is a directory.

Calls C++ function: void QDirModel::setLazyChildCount(bool enable).

C++ documentation:

This property holds whether the directory model optimizes the hasChildren function to only check if the item is a directory.

If this property is set to false, the directory model will make sure that a directory actually containes any files before reporting that it has children. Otherwise the directory model will report that an item has children if the item is a directory.

This property is false by default

Access functions:

bool lazyChildCount() const
void setLazyChildCount(bool enable)

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

Sets the name filters for the directory model.

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

C++ documentation:

Sets the name filters for the directory model.

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 QDirModel::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 QDirModel::setResolveSymlinks(bool enable).

C++ documentation:

This property holds whether the directory model should resolve symbolic links

This is only relevant on operating systems that support symbolic links.

Access functions:

bool resolveSymlinks() const
void setResolveSymlinks(bool enable)

pub unsafe fn set_sorting(&mut self, sort: QFlags<SortFlag>)[src]

Sets the directory model's sorting order to that specified by sort.

Calls C++ function: void QDirModel::setSorting(QFlags<QDir::SortFlag> sort).

C++ documentation:

Sets the directory model's sorting order to that specified by sort.

See also sorting() and QDir::SortFlags.

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

Reimplemented from QAbstractItemModel::sort().

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

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

Sort the model items in the column using the order given. The order is a value defined in Qt::SortOrder.

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

Reimplemented from QAbstractItemModel::sort().

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

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

Sort the model items in the column using the order given. The order is a value defined in Qt::SortOrder.

pub unsafe fn sorting(&self) -> QFlags<SortFlag>[src]

Returns the sorting method used for the directory model.

Calls C++ function: QFlags<QDir::SortFlag> QDirModel::sorting() const.

C++ documentation:

Returns the sorting method used for the directory model.

See also setSorting() and QDir::SortFlags.

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> QDirModel::supportedDropActions() const.

C++ documentation:

Reimplemented from QAbstractItemModel::supportedDropActions().

Returns the drop actions supported by this model.

See also Qt::DropActions.

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 QDirModel::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 QDirModel::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl Deref for QDirModel[src]

type Target = QAbstractItemModel

The resulting type after dereferencing.

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

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

impl DerefMut for QDirModel[src]

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

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

impl StaticUpcast<QAbstractItemModel> for QDirModel[src]

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

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

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

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

impl StaticUpcast<QObject> for QDirModel[src]

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

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

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

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

impl StaticDowncast<QDirModel> for QAbstractItemModel[src]

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

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

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

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

impl StaticDowncast<QDirModel> for QObject[src]

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

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

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

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

impl DynamicCast<QDirModel> for QAbstractItemModel[src]

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

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

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

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

impl DynamicCast<QDirModel> for QObject[src]

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

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

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

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

impl CppDeletable for QDirModel[src]

unsafe fn delete(&mut self)[src]

Destroys this directory model.

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

C++ documentation:

Destroys this directory model.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]