Public Member Functions | List of all members
pqFileDialogFavoriteModel Class Reference

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 () override
 
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 override
 returns the data for an item More...
 
int rowCount (const QModelIndex &idx) const override
 return the number of rows in the model More...
 
QVariant headerData (int section, Qt::Orientation, int role) const override
 return header data More...
 

Detailed Description

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 50 of file pqFileDialogFavoriteModel.h.

Constructor & Destructor Documentation

◆ pqFileDialogFavoriteModel()

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::~pqFileDialogFavoriteModel ( )
override

Member Function Documentation

◆ filePath()

QString pqFileDialogFavoriteModel::filePath ( const QModelIndex &  ) const

return the path to the favorites item

◆ isDir()

bool pqFileDialogFavoriteModel::isDir ( 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

◆ headerData()

QVariant pqFileDialogFavoriteModel::headerData ( int  section,
Qt::Orientation  ,
int  role 
) const
override

return header data


The documentation for this class was generated from the following file: