QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsCategoryDisplayLabelDelegate Class Reference

A label delegate being able to display html encoded content. More...

#include <qgsmaplayerstylecategoriesmodel.h>

Inheritance diagram for QgsCategoryDisplayLabelDelegate:
Inheritance graph
[legend]

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 being able to display html encoded content.

Since
QGIS 3.40

Definition at line 79 of file qgsmaplayerstylecategoriesmodel.h.

Constructor & Destructor Documentation

◆ QgsCategoryDisplayLabelDelegate()

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

constructor

Definition at line 492 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 497 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ sizeHint()

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

Definition at line 512 of file qgsmaplayerstylecategoriesmodel.cpp.


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