pqFileDialogRecentDirsModel is a model which used by file dialog (pqFileDialog) to populate the list showing the recent directory locations.
More...
#include <pqFileDialogRecentDirsModel.h>
Inherits QAbstractListModel.
pqFileDialogRecentDirsModel is a model which used by file dialog (pqFileDialog) to populate the list showing the recent directory locations.
This is per server based, since the locations are connection dependent.
Definition at line 20 of file pqFileDialogRecentDirsModel.h.
◆ pqFileDialogRecentDirsModel()
server is the server for which we need the listing.
if the server is nullptr, we get file listings locally (i.e. builtin server). pqFileDialogModel is used to test the validity of directories.
◆ ~pqFileDialogRecentDirsModel()
pqFileDialogRecentDirsModel::~pqFileDialogRecentDirsModel |
( |
| ) |
|
|
override |
◆ setChosenDir()
void pqFileDialogRecentDirsModel::setChosenDir |
( |
const QString & |
dir | ) |
|
Set the directory chosen by the user so that it gets added to the recent list.
◆ filePath()
QString pqFileDialogRecentDirsModel::filePath |
( |
const QModelIndex & |
| ) |
const |
◆ data()
QVariant pqFileDialogRecentDirsModel::data |
( |
const QModelIndex & |
idx, |
|
|
int |
role |
|
) |
| const |
|
override |
returns the data for an item
◆ rowCount()
int pqFileDialogRecentDirsModel::rowCount |
( |
const QModelIndex & |
idx | ) |
const |
|
override |
return the number of rows in the model
◆ headerData()
QVariant pqFileDialogRecentDirsModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ setChosenFiles
void pqFileDialogRecentDirsModel::setChosenFiles |
( |
const QList< QStringList > & |
files | ) |
|
|
slot |
◆ Directories
QStringList pqFileDialogRecentDirsModel::Directories |
|
protected |
◆ SettingsKey
QString pqFileDialogRecentDirsModel::SettingsKey |
|
protected |
◆ FileDialogModel
The documentation for this class was generated from the following file: