Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 578 Bytes
#include "vehiculefilterproxy.h"
#include "vehicule.h"
VehiculeFilterProxy::VehiculeFilterProxy(QObject *parent) :
QSortFilterProxyModel(parent)
{
}
bool VehiculeFilterProxy::filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const {
return source_column == Vehicule::COL_ID
|| source_column == Vehicule::COL_MARQUE
|| source_column == Vehicule::COL_MODELE
|| source_column == Vehicule::COL_INFO;
}
bool VehiculeFilterProxy::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const {
return true;
}
Jump to Line
Something went wrong with that request. Please try again.