Guitar
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CommitLogTableModel Class Reference

#include <CommitLogTableWidget.h>

Inheritance diagram for CommitLogTableModel:
Inheritance graph
[legend]
Collaboration diagram for CommitLogTableModel:
Collaboration graph
[legend]

Public Member Functions

 CommitLogTableModel (QObject *parent=nullptr)
 
QModelIndex index (int row, int column, const QModelIndex &parent) const
 
QModelIndex parent (const QModelIndex &child) const
 
int rowCount (const QModelIndex &parent) const
 
int columnCount (const QModelIndex &parent) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
QVariant data (const QModelIndex &index, int role) const
 
void setRecords (std::basic_string_view< const CommitRecord * > records)
 
bool setFilter (const std::string &text)
 
bool isFiltered () const
 
int unfilteredIndex (int i) const
 

Static Public Member Functions

static QString escapeTooltipText (QString tooltip)
 

Private Member Functions

IncrementalSearchFilter const & getIncrementalSearchFilter () const
 
CommitLogTableWidgettablewidget ()
 
const CommitRecordrecord (int row) const
 
const CommitRecordrecord (QModelIndex const &index) const
 
int rowcount () const
 
void private_SetFilter (const std::string &text)
 

Private Attributes

std::basic_string_view< CommitRecord const * > records_
 
std::vector< size_t > index_
 
std::string filter_text_
 
IncrementalSearchFilter incremental_search_filter_
 

Friends

class CommitLogTableWidgetDelegate
 
class CommitLogTableWidget
 

Constructor & Destructor Documentation

◆ CommitLogTableModel()

CommitLogTableModel::CommitLogTableModel ( QObject *  parent = nullptr)
inline

Member Function Documentation

◆ columnCount()

int CommitLogTableModel::columnCount ( const QModelIndex &  parent) const

◆ data()

QVariant CommitLogTableModel::data ( const QModelIndex &  index,
int  role 
) const
Here is the call graph for this function:

◆ escapeTooltipText()

QString CommitLogTableModel::escapeTooltipText ( QString  tooltip)
static

◆ getIncrementalSearchFilter()

IncrementalSearchFilter const& CommitLogTableModel::getIncrementalSearchFilter ( ) const
inlineprivate

◆ headerData()

QVariant CommitLogTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

◆ index()

QModelIndex CommitLogTableModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const

◆ isFiltered()

bool CommitLogTableModel::isFiltered ( ) const
inline

◆ parent()

QModelIndex CommitLogTableModel::parent ( const QModelIndex &  child) const

◆ private_SetFilter()

void CommitLogTableModel::private_SetFilter ( const std::string &  text)
private
Here is the call graph for this function:

◆ record() [1/2]

const CommitRecord * CommitLogTableModel::record ( int  row) const
private

◆ record() [2/2]

const CommitRecord * CommitLogTableModel::record ( QModelIndex const &  index) const
private
Here is the call graph for this function:

◆ rowcount()

int CommitLogTableModel::rowcount ( ) const
private

◆ rowCount()

int CommitLogTableModel::rowCount ( const QModelIndex &  parent) const
Here is the call graph for this function:

◆ setFilter()

bool CommitLogTableModel::setFilter ( const std::string &  text)
Here is the call graph for this function:

◆ setRecords()

void CommitLogTableModel::setRecords ( std::basic_string_view< const CommitRecord * >  records)
Here is the call graph for this function:

◆ tablewidget()

CommitLogTableWidget * CommitLogTableModel::tablewidget ( )
private

◆ unfilteredIndex()

int CommitLogTableModel::unfilteredIndex ( int  i) const

Friends And Related Function Documentation

◆ CommitLogTableWidget

friend class CommitLogTableWidget
friend

◆ CommitLogTableWidgetDelegate

friend class CommitLogTableWidgetDelegate
friend

Member Data Documentation

◆ filter_text_

std::string CommitLogTableModel::filter_text_
private

◆ incremental_search_filter_

IncrementalSearchFilter CommitLogTableModel::incremental_search_filter_
private

◆ index_

std::vector<size_t> CommitLogTableModel::index_
private

◆ records_

std::basic_string_view<CommitRecord const *> CommitLogTableModel::records_
private

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