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

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

#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.
 
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()

Definition at line 31 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 24 of file qgsmenuheader.cpp.

Member Function Documentation

◆ minimumSizeHint()

QSize QgsMenuHeader::minimumSizeHint ( ) const
override

Definition at line 36 of file qgsmenuheader.cpp.

◆ paintEvent()

void QgsMenuHeader::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 46 of file qgsmenuheader.cpp.

◆ sizeHint()

QSize QgsMenuHeader::sizeHint ( ) const
override

Definition at line 41 of file qgsmenuheader.cpp.


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