QGIS API Documentation 3.43.0-Master (c4a2e9c6d2f)
qgshistorywidgetcontext.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgshistorywidgetcontext.cpp
3 ------------------
4 Date : April 2023
5 Copyright : (C) 2023 Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
17
19{
20 mMessageBar = bar;
21}
22
24{
25 return mMessageBar;
26}
27
29{
30 mHistoryWidget = widget;
31}
32
34{
35 return mHistoryWidget;
36}
void setHistoryWidget(QgsHistoryWidget *widget)
Sets the parent history widget.
void setMessageBar(QgsMessageBar *bar)
Sets the message bar associated with the widget.
QgsMessageBar * messageBar() const
Returns the message bar associated with the widget.
QgsHistoryWidget * historyWidget() const
Returns the parent history widget.
A widget showing entries from a QgsHistoryProviderRegistry.
A bar for displaying non-blocking messages to the user.