QGIS API Documentation 3.99.0-Master (752b475928d)
Loading...
Searching...
No Matches
QgsNewsFeedProxyModel Class Reference

A proxy model for use with QgsNewsFeedModel. More...

#include <qgsnewsfeedmodel.h>

Inheritance diagram for QgsNewsFeedProxyModel:

Public Member Functions

 QgsNewsFeedProxyModel (QgsNewsFeedParser *parser, QObject *parent=nullptr)
 Constructor for QgsNewsFeedProxyModel, with the specified parent object.

Protected Member Functions

bool lessThan (const QModelIndex &left, const QModelIndex &right) const override

Detailed Description

A proxy model for use with QgsNewsFeedModel.

QgsNewsFeedProxyModel applies custom sorting to the entries in a QgsNewsFeedModel.

Since
QGIS 3.10

Definition at line 96 of file qgsnewsfeedmodel.h.

Constructor & Destructor Documentation

◆ QgsNewsFeedProxyModel()

QgsNewsFeedProxyModel::QgsNewsFeedProxyModel ( QgsNewsFeedParser * parser,
QObject * parent = nullptr )
explicit

Constructor for QgsNewsFeedProxyModel, with the specified parent object.

The parser argument must specify a valid QgsNewsFeedParser object, which must exist for the lifetime of this model.

Definition at line 177 of file qgsnewsfeedmodel.cpp.

Member Function Documentation

◆ lessThan()

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

Definition at line 187 of file qgsnewsfeedmodel.cpp.


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