Stellarium 0.15.2
List of all members | Public Member Functions | Protected Member Functions | Properties
SatellitesListFilterModel Class Reference

Custom proxy model allowing filtering by satellite group and flag. More...

#include <SatellitesListFilterModel.hpp>

+ Inheritance diagram for SatellitesListFilterModel:
+ Collaboration diagram for SatellitesListFilterModel:

Public Member Functions

 SatellitesListFilterModel (QObject *parent=0)
 
SatFlag getFilterFlag () const
 
void setFilterFlag (const SatFlag &flag)
 
QString getFilterGroup () const
 
void setFilterGroup (const QString &groupId)
 
void setSecondaryFilters (const QString &groupId, const SatFlag &flag)
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
 Reimplementation of the filtering method. More...
 

Properties

SatFlag filterFlag
 Only satellites with this flag raised will be returned. More...
 
QString filterGroup
 Only satellites belonging to this group will be returned. More...
 

Detailed Description

Custom proxy model allowing filtering by satellite group and flag.

Definition at line 28 of file SatellitesListFilterModel.hpp.

Member Function Documentation

bool SatellitesListFilterModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
protected

Reimplementation of the filtering method.

Property Documentation

SatFlag SatellitesListFilterModel::filterFlag
readwrite

Only satellites with this flag raised will be returned.

Use Satellite::NoFlags for no filtering. Setting the flag with setFilterFlag() or setSecondaryFilters() will cause the model to be re-filtered.

Definition at line 38 of file SatellitesListFilterModel.hpp.

QString SatellitesListFilterModel::filterGroup
readwrite

Only satellites belonging to this group will be returned.

Use an empty group ID for no filtering. Setting the group with setFilterGroup() or setSecondaryFilters() will cause the model to be re-filtered.

Definition at line 46 of file SatellitesListFilterModel.hpp.


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