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.
|
static bool | AddExamplesInFavorites |
| Flag to indicate if the ParaView Examples directory must be added when creating the settings for the first time, or when reseting it to the default value. More...
|
|
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 27 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.
◆ AddExamplesInFavorites
bool pqFileDialogFavoriteModel::AddExamplesInFavorites |
|
static |
Flag to indicate if the ParaView Examples directory must be added when creating the settings for the first time, or when reseting it to the default value.
Deprecated.
Definition at line 95 of file pqFileDialogFavoriteModel.h.
◆ FileDialogModel
◆ Server
pqServer* pqFileDialogFavoriteModel::Server = nullptr |
|
protected |
◆ FavoriteList
◆ SettingsKey
QString pqFileDialogFavoriteModel::SettingsKey |
|
protected |
The documentation for this class was generated from the following file: