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

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
 
TrackManager::Track getTrackForIndex (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role) override
 
 TrackListModel (TrackManager *const trackManager, QObject *const parent)
 
 ~TrackListModel () override
 

Constructor & Destructor Documentation

◆ TrackListModel()

Digikam::TrackListModel::TrackListModel ( TrackManager *const  trackManager,
QObject *const  parent 
)
explicit

◆ ~TrackListModel()

Digikam::TrackListModel::~TrackListModel ( )
override

Member Function Documentation

◆ columnCount()

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

References Digikam::ColumnCount, and parent().

◆ data()

◆ flags()

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

References index().

◆ getTrackForIndex()

TrackManager::Track Digikam::TrackListModel::getTrackForIndex ( const QModelIndex &  index) const

References index().

◆ headerData()

QVariant Digikam::TrackListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

@TODO Make color and #points sections more narrow @TODO Display visible state and make it toggable

References Digikam::ColumnCount, Digikam::ColumnFilename, Digikam::ColumnNPoints, and Digikam::ColumnVisible.

◆ index()

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

@TODO We have to use quint32 for track ids

References Digikam::ColumnCount, Digikam::TrackManager::Track::id, and parent().

Referenced by data(), flags(), getTrackForIndex(), parent(), and setData().

◆ parent()

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

References index().

Referenced by columnCount(), index(), and rowCount().

◆ rowCount()

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

References parent().

◆ setData()

bool Digikam::TrackListModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

References index(), and value.

◆ setHeaderData()

bool Digikam::TrackListModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role 
)
override

References value.


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