QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsHistoryWidgetContext Class Reference

Contains settings which reflect the context in which a history widget is shown, e.g., an associated message bar. More...

#include <qgshistorywidgetcontext.h>

Public Member Functions

 QgsHistoryWidgetContext ()=default
 Constructor for QgsHistoryWidgetContext. More...
 
QgsMessageBarmessageBar () const
 Returns the message bar associated with the widget. More...
 
void setMessageBar (QgsMessageBar *bar)
 Sets the message bar associated with the widget. More...
 

Detailed Description

Contains settings which reflect the context in which a history widget is shown, e.g., an associated message bar.

Since
QGIS 3.32

Definition at line 31 of file qgshistorywidgetcontext.h.

Constructor & Destructor Documentation

◆ QgsHistoryWidgetContext()

QgsHistoryWidgetContext::QgsHistoryWidgetContext ( )
default

Constructor for QgsHistoryWidgetContext.

Member Function Documentation

◆ messageBar()

QgsMessageBar * QgsHistoryWidgetContext::messageBar ( ) const

Returns the message bar associated with the widget.

See also
setMessageBar()

Definition at line 23 of file qgshistorywidgetcontext.cpp.

◆ setMessageBar()

void QgsHistoryWidgetContext::setMessageBar ( QgsMessageBar bar)

Sets the message bar associated with the widget.

This allows the widget to push feedback messages to the appropriate message bar.

See also
messageBar()

Definition at line 18 of file qgshistorywidgetcontext.cpp.


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