QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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 491 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 496 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ sizeHint()

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

Definition at line 511 of file qgsmaplayerstylecategoriesmodel.cpp.


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