QGIS API Documentation  3.6.0-Noosa (5873452)
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. 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 35 of file qgsmenuheader.cpp.

◆ paintEvent()

void QgsMenuHeader::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 45 of file qgsmenuheader.cpp.

◆ sizeHint()

QSize QgsMenuHeader::sizeHint ( ) const
override

Definition at line 40 of file qgsmenuheader.cpp.


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