CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
SortModel Class Reference

#include <sortmodel.h>

Inheritance diagram for SortModel:
Collaboration diagram for SortModel:

Public Member Functions

 SortModel (QObject *parent=0)
 
void setFilterActive (bool enabled)
 
bool isFilterActive () const
 
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override
 

Protected Member Functions

bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
 Function compares two items while sorting table view.
 

Constructor & Destructor Documentation

◆ SortModel()

SortModel::SortModel ( QObject *  parent = 0)
explicit

Member Function Documentation

◆ isFilterActive()

bool SortModel::isFilterActive ( ) const

◆ lessThan()

bool SortModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
overrideprotected

Function compares two items while sorting table view.

Parameters
leftindex of first item to compare
rightindex of second item to compare
Returns
true if left item is smaller than right, false if otherwise

◆ setFilterActive()

void SortModel::setFilterActive ( bool  enabled)

◆ sort()

void SortModel::sort ( int  column,
Qt::SortOrder  order = Qt::AscendingOrder 
)
override

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