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

Public Slots

void setPaintTree (bool paint)
 
void slotAnimationStep ()
 

Public Member Functions

void clearModelData ()
 
QString currentSelectedImage () const
 
QModelIndex currentSelectedImageIndex () const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
 ItemVersionsModel (QObject *const parent=nullptr)
 
int listIndexOf (const QString &item) const
 
bool paintTree () const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void setCurrentSelectedImage (const QString &path)
 
void setupModelData (QList< QPair< QString, int > > &data)
 
 ~ItemVersionsModel () override
 

Constructor & Destructor Documentation

◆ ItemVersionsModel()

Digikam::ItemVersionsModel::ItemVersionsModel ( QObject *const  parent = nullptr)
explicit

◆ ~ItemVersionsModel()

Digikam::ItemVersionsModel::~ItemVersionsModel ( )
override

Member Function Documentation

◆ clearModelData()

void Digikam::ItemVersionsModel::clearModelData ( )

◆ currentSelectedImage()

QString Digikam::ItemVersionsModel::currentSelectedImage ( ) const

◆ currentSelectedImageIndex()

QModelIndex Digikam::ItemVersionsModel::currentSelectedImageIndex ( ) const

References listIndexOf().

◆ data()

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

Referenced by setupModelData().

◆ flags()

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

◆ listIndexOf()

int Digikam::ItemVersionsModel::listIndexOf ( const QString &  item) const

◆ paintTree()

bool Digikam::ItemVersionsModel::paintTree ( ) const

◆ rowCount()

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

Referenced by slotAnimationStep().

◆ setCurrentSelectedImage()

void Digikam::ItemVersionsModel::setCurrentSelectedImage ( const QString &  path)

◆ setPaintTree

void Digikam::ItemVersionsModel::setPaintTree ( bool  paint)
slot

◆ setupModelData()

void Digikam::ItemVersionsModel::setupModelData ( QList< QPair< QString, int > > &  data)

References data().

◆ slotAnimationStep

void Digikam::ItemVersionsModel::slotAnimationStep ( )
slot

References rowCount().


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