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

Signals

void signalThumbnailForIndexAvailable (const QPersistentModelIndex &index, const QPixmap &pixmap)
 

Public Member Functions

void addItem (GPSItemContainer *const newItem)
 
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
 
QPixmap getPixmapForIndex (const QPersistentModelIndex &itemIndex, const int size)
 
 GPSItemModel (QObject *const parent=nullptr)
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex indexFromUrl (const QUrl &url) const
 
GPSItemContaineritemFromIndex (const QModelIndex &index) const
 
GPSItemContaineritemFromUrl (const QUrl &url) const
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void setColumnCount (const int nColumns)
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role) override
 
Qt::DropActions supportedDragActions () const override
 
 ~GPSItemModel () override
 

Protected Slots

void slotThumbnailLoaded (const LoadingDescription &, const QPixmap &)
 

Protected Member Functions

void itemChanged (GPSItemContainer *const changedItem)
 

Friends

class GPSItemContainer
 

Constructor & Destructor Documentation

◆ GPSItemModel()

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

References slotThumbnailLoaded().

◆ ~GPSItemModel()

Digikam::GPSItemModel::~GPSItemModel ( )
override

Member Function Documentation

◆ addItem()

void Digikam::GPSItemModel::addItem ( GPSItemContainer *const  newItem)

◆ columnCount()

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

◆ data()

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

References index().

◆ flags()

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

References index().

◆ getPixmapForIndex()

QPixmap Digikam::GPSItemModel::getPixmapForIndex ( const QPersistentModelIndex &  itemIndex,
const int  size 
)

◆ headerData()

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

◆ index()

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

◆ indexFromUrl()

QModelIndex Digikam::GPSItemModel::indexFromUrl ( const QUrl &  url) const

References index().

Referenced by slotThumbnailLoaded().

◆ itemChanged()

void Digikam::GPSItemModel::itemChanged ( GPSItemContainer *const  changedItem)
protected

◆ itemFromIndex()

◆ itemFromUrl()

GPSItemContainer * Digikam::GPSItemModel::itemFromUrl ( const QUrl &  url) const

◆ parent()

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

Referenced by index(), and rowCount().

◆ rowCount()

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

◆ setColumnCount()

void Digikam::GPSItemModel::setColumnCount ( const int  nColumns)

◆ setData()

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

References index(), and value.

◆ setHeaderData()

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

◆ signalThumbnailForIndexAvailable

void Digikam::GPSItemModel::signalThumbnailForIndexAvailable ( const QPersistentModelIndex &  index,
const QPixmap &  pixmap 
)
signal

Referenced by slotThumbnailLoaded().

◆ slotThumbnailLoaded

void Digikam::GPSItemModel::slotThumbnailLoaded ( const LoadingDescription loadingDescription,
const QPixmap &  thumb 
)
protectedslot

◆ supportedDragActions()

Qt::DropActions Digikam::GPSItemModel::supportedDragActions ( ) const
override

References Digikam::CopyAction.

Friends And Related Function Documentation

◆ GPSItemContainer

friend class GPSItemContainer
friend

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