4#include <QSortFilterProxyModel>
10class QFileSystemModel;
22 bool ShowThis(
const QModelIndex)
const;
24 QVariant
data(
const QModelIndex &index,
int role)
const override;
25 bool lessThan(
const QModelIndex &source_left,
26 const QModelIndex &source_right)
const override;
32 Qt::ItemFlags
flags(
const QModelIndex &index)
const override;
34 QMimeData *
mimeData(
const QModelIndexList &indexes)
const override;
36 int column,
const QModelIndex &parent)
const override;
38 int column,
const QModelIndex &parent)
override;
The QSortFilterProxyModel for handling filesystem searches.
Qt::DropActions supportedDropActions() const override
StoreModel::supportedDropActions enable drop.
QStringList mimeTypes() const override
StoreModel::mimeTypes.
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
StoreModel::dropMimeData.
StoreModel()
StoreModel::StoreModel SubClass of QSortFilterProxyModel via http://www.qtcentre.org/threads/46471-QT...
bool filterAcceptsRow(int, const QModelIndex &) const override
StoreModel::filterAcceptsRow should row be shown, wrapper for StoreModel::ShowThis method.
Qt::DropActions supportedDragActions() const override
StoreModel::supportedDragActions enable drag.
QMimeData * mimeData(const QModelIndexList &indexes) const override
StoreModel::mimeData.
bool ShowThis(const QModelIndex) const
StoreModel::ShowThis should a row be shown, based on our search criteria.
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
StoreModel::lessThan.
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
StoreModel::canDropMimeData.
QVariant data(const QModelIndex &index, int role) const override
StoreModel::data don't show the .gpg at the end of a file.
void setModelAndStore(QFileSystemModel *sourceModel, QString passStore)
StoreModel::setModelAndStore update the source model and store.
Qt::ItemFlags flags(const QModelIndex &index) const override
StoreModel::flags.