QtPass  1.3.3
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 override
 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 override
 StoreModel::data don't show the .gpg at the end of a file. More...
 
bool lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override
 StoreModel::lessThan. More...
 
Qt::DropActions supportedDropActions () const override
 StoreModel::supportedDropActions enable drop. More...
 
Qt::DropActions supportedDragActions () const override
 StoreModel::supportedDragActions enable drag. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 StoreModel::flags. More...
 
QStringList mimeTypes () const override
 StoreModel::mimeTypes. More...
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 StoreModel::mimeData. More...
 
bool canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
 StoreModel::canDropMimeData. More...
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
 StoreModel::dropMimeData. More...
 

Detailed Description

The QSortFilterProxyModel for handling filesystem searches.

Definition at line 12 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 31 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
override

StoreModel::canDropMimeData.

Parameters
data
action
row
column
parent
Returns

Definition at line 186 of file storemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ data()

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

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

Parameters
index
role
Returns

Definition at line 94 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ dropMimeData()

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

StoreModel::dropMimeData.

Parameters
data
action
row
column
parent
Returns

Definition at line 235 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ filterAcceptsRow()

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

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

Parameters
sourceRow
sourceParent
Returns

Definition at line 40 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ flags()

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

StoreModel::flags.

Parameters
index
Returns

Definition at line 131 of file storemodel.cpp.

◆ lessThan()

bool StoreModel::lessThan ( const QModelIndex &  source_left,
const QModelIndex &  source_right 
) const
override

StoreModel::lessThan.

Parameters
source_left
source_right
Returns

Definition at line 299 of file storemodel.cpp.

◆ mimeData()

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

StoreModel::mimeData.

Parameters
indexes
Returns

Definition at line 155 of file storemodel.cpp.

◆ mimeTypes()

QStringList StoreModel::mimeTypes ( ) const
override

StoreModel::mimeTypes.

Returns

Definition at line 144 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 81 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 52 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ supportedDragActions()

Qt::DropActions StoreModel::supportedDragActions ( ) const
override

StoreModel::supportedDragActions enable drag.

Returns

Definition at line 122 of file storemodel.cpp.

◆ supportedDropActions()

Qt::DropActions StoreModel::supportedDropActions ( ) const
override

StoreModel::supportedDropActions enable drop.

Returns

Definition at line 114 of file storemodel.cpp.


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