pqFileDialogFavoriteModel allows remote browsing of a connected ParaView server's filesystem, as well as browsing of the local file system.
More...
#include <pqFileDialogFavoriteModel.h>
Inherits QAbstractListModel.
pqFileDialogFavoriteModel allows remote browsing of a connected ParaView server's filesystem, as well as browsing of the local file system.
- See also
- pqFileDialog, pqFileDialogModel
Definition at line 26 of file pqFileDialogFavoriteModel.h.
◆ pqFileDialogFavoriteModel()
server is the server for which we need the listing.
if the server is nullptr, we get file listings from the builtin server
◆ ~pqFileDialogFavoriteModel()
pqFileDialogFavoriteModel::~pqFileDialogFavoriteModel |
( |
| ) |
|
|
override |
◆ filePath()
QString pqFileDialogFavoriteModel::filePath |
( |
const QModelIndex & |
| ) |
const |
return the path to the favorites item
◆ isDirectory()
bool pqFileDialogFavoriteModel::isDirectory |
( |
const QModelIndex & |
| ) |
const |
return whether this item is a directory
◆ data()
QVariant pqFileDialogFavoriteModel::data |
( |
const QModelIndex & |
idx, |
|
|
int |
role |
|
) |
| const |
|
override |
returns the data for an item
◆ rowCount()
int pqFileDialogFavoriteModel::rowCount |
( |
const QModelIndex & |
idx | ) |
const |
|
override |
return the number of rows in the model
◆ setData()
bool pqFileDialogFavoriteModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
used by the view to edit the label of the favorite
◆ flags()
Qt::ItemFlags pqFileDialogFavoriteModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
return the flags for a specific item
◆ headerData()
QVariant pqFileDialogFavoriteModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ addToFavorites()
virtual void pqFileDialogFavoriteModel::addToFavorites |
( |
QString const & |
dirPath | ) |
|
|
virtual |
Adds a directory to the favorites.
◆ removeFromFavorites()
virtual void pqFileDialogFavoriteModel::removeFromFavorites |
( |
QString const & |
dirPath | ) |
|
|
virtual |
Removes a directory from the favorites.
◆ resetFavoritesToDefault()
virtual void pqFileDialogFavoriteModel::resetFavoritesToDefault |
( |
| ) |
|
|
virtual |
Resets the favorites to the system default.
◆ FileDialogModel
◆ Server
pqServer* pqFileDialogFavoriteModel::Server = nullptr |
|
protected |
◆ FavoriteList
◆ SettingsKey
QString pqFileDialogFavoriteModel::SettingsKey |
|
protected |
The documentation for this class was generated from the following file: