ParaView
|
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.
Public Member Functions | |
pqFileDialogFavoriteModel (pqServer *server, QObject *Parent) | |
server is the server for which we need the listing. More... | |
~pqFileDialogFavoriteModel () | |
QString | filePath (const QModelIndex &) const |
return the path to the favorites item More... | |
bool | isDir (const QModelIndex &) const |
return whether this item is a directory More... | |
QVariant | data (const QModelIndex &idx, int role) const |
returns the data for an item More... | |
int | rowCount (const QModelIndex &idx) const |
return the number of rows in the model More... | |
QVariant | headerData (int section, Qt::Orientation, int role) const |
return header data More... | |
pqFileDialogFavoriteModel allows remote browsing of a connected ParaView server's filesystem, as well as browsing of the local file system.
Definition at line 50 of file pqFileDialogFavoriteModel.h.
pqFileDialogFavoriteModel::pqFileDialogFavoriteModel | ( | pqServer * | server, |
QObject * | Parent | ||
) |
server is the server for which we need the listing.
if the server is NULL, we get file listings locally
pqFileDialogFavoriteModel::~pqFileDialogFavoriteModel | ( | ) |
QString pqFileDialogFavoriteModel::filePath | ( | const QModelIndex & | ) | const |
return the path to the favorites item
bool pqFileDialogFavoriteModel::isDir | ( | const QModelIndex & | ) | const |
return whether this item is a directory
QVariant pqFileDialogFavoriteModel::data | ( | const QModelIndex & | idx, |
int | role | ||
) | const |
returns the data for an item
int pqFileDialogFavoriteModel::rowCount | ( | const QModelIndex & | idx | ) | const |
return the number of rows in the model
QVariant pqFileDialogFavoriteModel::headerData | ( | int | section, |
Qt::Orientation | , | ||
int | role | ||
) | const |
return header data