digiKam
Digikam::ItemFiltersHistoryModel Class Reference
+ Inheritance diagram for Digikam::ItemFiltersHistoryModel:

Public Slots

void disableEntries (int count)
 
void enableEntries (int count)
 
void removeEntry (const QModelIndex &index)
 
void setEnabledEntries (int count)
 

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
 ItemFiltersHistoryModel (QObject *const parent=nullptr, const QUrl &url=QUrl())
 
QModelIndex parent (const QModelIndex &index) const override
 
bool removeRows (int row, int count, const QModelIndex &parent) override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void setupModelData (const QList< DImageHistory::Entry > &entries, ItemFiltersHistoryTreeItem *parent=nullptr)
 
void setUrl (const QUrl &url)
 
 ~ItemFiltersHistoryModel () override
 

Constructor & Destructor Documentation

◆ ItemFiltersHistoryModel()

Digikam::ItemFiltersHistoryModel::ItemFiltersHistoryModel ( QObject *const  parent = nullptr,
const QUrl &  url = QUrl() 
)
explicit

◆ ~ItemFiltersHistoryModel()

Digikam::ItemFiltersHistoryModel::~ItemFiltersHistoryModel ( )
override

Member Function Documentation

◆ columnCount()

int Digikam::ItemFiltersHistoryModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant Digikam::ItemFiltersHistoryModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ disableEntries

void Digikam::ItemFiltersHistoryModel::disableEntries ( int  count)
slot

References index(), and rowCount().

◆ enableEntries

void Digikam::ItemFiltersHistoryModel::enableEntries ( int  count)
slot

References index(), and rowCount().

◆ flags()

Qt::ItemFlags Digikam::ItemFiltersHistoryModel::flags ( const QModelIndex &  index) const
override

◆ headerData()

QVariant Digikam::ItemFiltersHistoryModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

◆ index()

QModelIndex Digikam::ItemFiltersHistoryModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

◆ parent()

QModelIndex Digikam::ItemFiltersHistoryModel::parent ( const QModelIndex &  index) const
override

◆ removeEntry

void Digikam::ItemFiltersHistoryModel::removeEntry ( const QModelIndex &  index)
slot

References index().

◆ removeRows()

bool Digikam::ItemFiltersHistoryModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent 
)
override

References parent(), and rowCount().

◆ rowCount()

int Digikam::ItemFiltersHistoryModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ setEnabledEntries

void Digikam::ItemFiltersHistoryModel::setEnabledEntries ( int  count)
slot

References index(), and rowCount().

◆ setupModelData()

void Digikam::ItemFiltersHistoryModel::setupModelData ( const QList< DImageHistory::Entry > &  entries,
ItemFiltersHistoryTreeItem parent = nullptr 
)

◆ setUrl()

void Digikam::ItemFiltersHistoryModel::setUrl ( const QUrl &  url)

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