QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | Protected Member Functions | List of all members
QgsMenuHeader Class Reference

#include <qgsmenuheader.h>

Inheritance diagram for QgsMenuHeader:
Inheritance graph
[legend]

Public Member Functions

 QgsMenuHeader (const QString &text, QWidget *parent=nullptr)
 Constructor for QgsMenuHeader, showing the specified text. More...
 
QSize minimumSizeHint () const override
 
QSize sizeHint () const override
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 

Detailed Description

Custom widget for displaying subheaders within a QMenu in a standard style.

See also
QgsMenuHeaderWidgetAction()
Since
QGIS 3.0

Definition at line 32 of file qgsmenuheader.h.

Constructor & Destructor Documentation

◆ QgsMenuHeader()

QgsMenuHeader::QgsMenuHeader ( const QString &  text,
QWidget *  parent = nullptr 
)
explicit

Constructor for QgsMenuHeader, showing the specified text.

Definition at line 23 of file qgsmenuheader.cpp.

Member Function Documentation

◆ minimumSizeHint()

QSize QgsMenuHeader::minimumSizeHint ( ) const
override

Definition at line 39 of file qgsmenuheader.cpp.

◆ paintEvent()

void QgsMenuHeader::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 49 of file qgsmenuheader.cpp.

◆ sizeHint()

QSize QgsMenuHeader::sizeHint ( ) const
override

Definition at line 44 of file qgsmenuheader.cpp.


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