digiKam
DigikamGenericGeolocationEditPlugin::SearchResultModel Class Reference
+ Inheritance diagram for DigikamGenericGeolocationEditPlugin::SearchResultModel:

Classes

class  SearchResultItem
 

Public Member Functions

void addResults (const SearchBackend::SearchResult::List &results)
 
void clearResults ()
 
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
 
bool getMarkerIcon (const QModelIndex &index, QPoint *const offset, QSize *const size, QPixmap *const pixmap, QUrl *const url) 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
 
void removeRowsByIndexes (const QModelIndexList &rowsList)
 
void removeRowsBySelection (const QItemSelection &selection)
 
SearchResultItem resultItem (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
 SearchResultModel (QObject *const parent=nullptr)
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role) override
 
void setSelectionModel (QItemSelectionModel *const selectionModel)
 
 ~SearchResultModel () override
 

Constructor & Destructor Documentation

◆ SearchResultModel()

DigikamGenericGeolocationEditPlugin::SearchResultModel::SearchResultModel ( QObject *const  parent = nullptr)
explicit

◆ ~SearchResultModel()

DigikamGenericGeolocationEditPlugin::SearchResultModel::~SearchResultModel ( )
override

Member Function Documentation

◆ addResults()

◆ clearResults()

void DigikamGenericGeolocationEditPlugin::SearchResultModel::clearResults ( )

◆ columnCount()

int DigikamGenericGeolocationEditPlugin::SearchResultModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

References parent().

◆ data()

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

References getMarkerIcon(), and index().

◆ flags()

Qt::ItemFlags DigikamGenericGeolocationEditPlugin::SearchResultModel::flags ( const QModelIndex &  index) const
override

References index().

◆ getMarkerIcon()

bool DigikamGenericGeolocationEditPlugin::SearchResultModel::getMarkerIcon ( const QModelIndex &  index,
QPoint *const  offset,
QSize *const  size,
QPixmap *const  pixmap,
QUrl *const  url 
) const

References index().

Referenced by data().

◆ headerData()

QVariant DigikamGenericGeolocationEditPlugin::SearchResultModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ index()

QModelIndex DigikamGenericGeolocationEditPlugin::SearchResultModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

◆ parent()

QModelIndex DigikamGenericGeolocationEditPlugin::SearchResultModel::parent ( const QModelIndex &  index) const
override

References index().

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

◆ removeRowsByIndexes()

void DigikamGenericGeolocationEditPlugin::SearchResultModel::removeRowsByIndexes ( const QModelIndexList &  rowsList)

References index().

◆ removeRowsBySelection()

void DigikamGenericGeolocationEditPlugin::SearchResultModel::removeRowsBySelection ( const QItemSelection &  selection)

◆ resultItem()

SearchResultModel::SearchResultItem DigikamGenericGeolocationEditPlugin::SearchResultModel::resultItem ( const QModelIndex &  index) const

References index().

◆ rowCount()

int DigikamGenericGeolocationEditPlugin::SearchResultModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

References parent().

◆ setData()

bool DigikamGenericGeolocationEditPlugin::SearchResultModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

References index(), and value.

◆ setHeaderData()

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

References value.

◆ setSelectionModel()

void DigikamGenericGeolocationEditPlugin::SearchResultModel::setSelectionModel ( QItemSelectionModel *const  selectionModel)

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