QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Member Functions | List of all members
StoreModel Class Reference

The QSortFilterProxyModel for handling filesystem searches. More...

#include <storemodel.h>

+ Inheritance diagram for StoreModel:
+ Collaboration diagram for StoreModel:

Public Member Functions

 StoreModel ()
 StoreModel::StoreModel SubClass of QSortFilterProxyModel via http://www.qtcentre.org/threads/46471-QTreeView-Filter. More...
 
bool filterAcceptsRow (int, const QModelIndex &) const
 StoreModel::filterAcceptsRow should row be shown, wrapper for StoreModel::ShowThis method. More...
 
bool ShowThis (const QModelIndex) const
 StoreModel::ShowThis should a row be shown, based on our search criteria. More...
 
void setModelAndStore (QFileSystemModel *sourceModel, QString passStore)
 StoreModel::setModelAndStore update the source model and store. More...
 
QVariant data (const QModelIndex &index, int role) const
 StoreModel::data don't show the .gpg at the end of a file. More...
 
Qt::DropActions supportedDropActions () const
 StoreModel::supportedDropActions enable drop. More...
 
Qt::DropActions supportedDragActions () const
 StoreModel::supportedDragActions enable drag. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QStringList mimeTypes () const
 
QMimeData * mimeData (const QModelIndexList &indexes) const
 
bool canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 

Detailed Description

The QSortFilterProxyModel for handling filesystem searches.

Definition at line 16 of file storemodel.h.

Constructor & Destructor Documentation

◆ StoreModel()

StoreModel::StoreModel ( )

StoreModel::StoreModel SubClass of QSortFilterProxyModel via http://www.qtcentre.org/threads/46471-QTreeView-Filter.

Definition at line 29 of file storemodel.cpp.

Member Function Documentation

◆ canDropMimeData()

bool StoreModel::canDropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
) const

Definition at line 160 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ data()

QVariant StoreModel::data ( const QModelIndex &  index,
int  role 
) const

StoreModel::data don't show the .gpg at the end of a file.

Parameters
index
role
Returns

Definition at line 91 of file storemodel.cpp.

◆ dropMimeData()

bool StoreModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)

Definition at line 196 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ filterAcceptsRow()

bool StoreModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const

StoreModel::filterAcceptsRow should row be shown, wrapper for StoreModel::ShowThis method.

Parameters
sourceRow
sourceParent
Returns

Definition at line 38 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ flags()

Qt::ItemFlags StoreModel::flags ( const QModelIndex &  index) const

Definition at line 122 of file storemodel.cpp.

◆ mimeData()

QMimeData * StoreModel::mimeData ( const QModelIndexList &  indexes) const

Definition at line 138 of file storemodel.cpp.

◆ mimeTypes()

QStringList StoreModel::mimeTypes ( ) const

Definition at line 132 of file storemodel.cpp.

◆ setModelAndStore()

void StoreModel::setModelAndStore ( QFileSystemModel *  sourceModel,
QString  passStore 
)

StoreModel::setModelAndStore update the source model and store.

Parameters
sourceModel
passStore

Definition at line 79 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ ShowThis()

bool StoreModel::ShowThis ( const QModelIndex  index) const

StoreModel::ShowThis should a row be shown, based on our search criteria.

Parameters
index
Returns

Definition at line 50 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ supportedDragActions()

Qt::DropActions StoreModel::supportedDragActions ( ) const

StoreModel::supportedDragActions enable drag.

Returns

Definition at line 118 of file storemodel.cpp.

◆ supportedDropActions()

Qt::DropActions StoreModel::supportedDropActions ( ) const

StoreModel::supportedDropActions enable drop.

Returns

Definition at line 111 of file storemodel.cpp.


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