QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsCategoryDisplayLabelDelegate Class Reference

A label delegate able to display HTML encoded content. More...

#include <qgsmaplayerstylecategoriesmodel.h>

Inheritance diagram for QgsCategoryDisplayLabelDelegate:

Public Member Functions

 QgsCategoryDisplayLabelDelegate (QObject *parent=nullptr)
 constructor

Protected Member Functions

void drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override

Detailed Description

A label delegate able to display HTML encoded content.

Since
QGIS 3.40

Definition at line 80 of file qgsmaplayerstylecategoriesmodel.h.

Constructor & Destructor Documentation

◆ QgsCategoryDisplayLabelDelegate()

QgsCategoryDisplayLabelDelegate::QgsCategoryDisplayLabelDelegate ( QObject * parent = nullptr)
explicit

constructor

Definition at line 568 of file qgsmaplayerstylecategoriesmodel.cpp.

Member Function Documentation

◆ drawDisplay()

void QgsCategoryDisplayLabelDelegate::drawDisplay ( QPainter * painter,
const QStyleOptionViewItem & option,
const QRect & rect,
const QString & text ) const
overrideprotected

Definition at line 573 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ sizeHint()

QSize QgsCategoryDisplayLabelDelegate::sizeHint ( const QStyleOptionViewItem & option,
const QModelIndex & index ) const
overrideprotected

Definition at line 588 of file qgsmaplayerstylecategoriesmodel.cpp.


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