QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 ( const QString &  text,
QWidget *  parent = nullptr 
)
explicit

Constructor for QgsMenuHeader, showing the specified text.

Definition at line 22 of file qgsmenuheader.cpp.

Member Function Documentation

QSize QgsMenuHeader::minimumSizeHint ( ) const
override

Definition at line 34 of file qgsmenuheader.cpp.

void QgsMenuHeader::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 44 of file qgsmenuheader.cpp.

QSize QgsMenuHeader::sizeHint ( ) const
override

Definition at line 39 of file qgsmenuheader.cpp.


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