QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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.
 
bool filterAcceptsRow (int, const QModelIndex &) const override
 StoreModel::filterAcceptsRow should row be shown, wrapper for StoreModel::ShowThis method.
 
bool ShowThis (const QModelIndex) const
 StoreModel::ShowThis should a row be shown, based on our search criteria.
 
void setModelAndStore (QFileSystemModel *sourceModel, QString passStore)
 StoreModel::setModelAndStore update the source model and store.
 
QVariant data (const QModelIndex &index, int role) const override
 StoreModel::data don't show the .gpg at the end of a file.
 
bool lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override
 StoreModel::lessThan.
 
Qt::DropActions supportedDropActions () const override
 StoreModel::supportedDropActions enable drop.
 
Qt::DropActions supportedDragActions () const override
 StoreModel::supportedDragActions enable drag.
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 StoreModel::flags.
 
QStringList mimeTypes () const override
 StoreModel::mimeTypes.
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 StoreModel::mimeData.
 
bool canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
 StoreModel::canDropMimeData.
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
 StoreModel::dropMimeData.
 

Detailed Description

The QSortFilterProxyModel for handling filesystem searches.

Definition at line 11 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 34 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 189 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 97 of file storemodel.cpp.

+ Here is the call graph for this function:
+ 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 238 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 43 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 134 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 300 of file storemodel.cpp.

◆ mimeData()

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

StoreModel::mimeData.

Parameters
indexes
Returns

Definition at line 158 of file storemodel.cpp.

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

◆ mimeTypes()

QStringList StoreModel::mimeTypes ( ) const
override

StoreModel::mimeTypes.

Returns

Definition at line 147 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 84 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 55 of file storemodel.cpp.

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

◆ supportedDragActions()

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

StoreModel::supportedDragActions enable drag.

Returns

Definition at line 125 of file storemodel.cpp.

◆ supportedDropActions()

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

StoreModel::supportedDropActions enable drop.

Returns

Definition at line 117 of file storemodel.cpp.


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