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

Detailed Description

The QSortFilterProxyModel for handling filesystem searches.

Definition at line 13 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 37 of file storemodel.cpp.

Member Function Documentation

◆ canDropMimeData()

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

StoreModel::canDropMimeData.

Parameters
data
action
row
column
parent
Returns

Definition at line 197 of file storemodel.cpp.

◆ data()

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

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

Parameters
index
role
Returns

Definition at line 104 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ dropMimeData()

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

StoreModel::dropMimeData.

Parameters
data
action
row
column
parent
Returns

Definition at line 247 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ filterAcceptsRow()

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

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

Parameters
sourceRow
sourceParent
Returns

Definition at line 46 of file storemodel.cpp.

◆ flags()

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

StoreModel::flags.

Parameters
index
Returns

Definition at line 142 of file storemodel.cpp.

◆ lessThan()

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

StoreModel::lessThan.

Parameters
source_left
source_right
Returns

Definition at line 311 of file storemodel.cpp.

◆ mimeData()

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

StoreModel::mimeData.

Parameters
indexes
Returns

Definition at line 166 of file storemodel.cpp.

◆ mimeTypes()

auto StoreModel::mimeTypes ( ) const -> QStringList
override

StoreModel::mimeTypes.

Returns

Definition at line 155 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 91 of file storemodel.cpp.

+ Here is the caller graph for this function:

◆ ShowThis()

auto StoreModel::ShowThis ( const QModelIndex  index) const -> bool

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

Parameters
index
Returns

Definition at line 59 of file storemodel.cpp.

+ Here is the call graph for this function:

◆ supportedDragActions()

auto StoreModel::supportedDragActions ( ) const -> Qt::DropActions
override

StoreModel::supportedDragActions enable drag.

Returns

Definition at line 133 of file storemodel.cpp.

◆ supportedDropActions()

auto StoreModel::supportedDropActions ( ) const -> Qt::DropActions
override

StoreModel::supportedDropActions enable drop.

Returns

Definition at line 125 of file storemodel.cpp.


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