QGIS API Documentation  2.99.0-Master (e077efd)
Signals | Public Member Functions | List of all members
QgsMessageBarItem Class Reference

#include <qgsmessagebaritem.h>

Inheritance diagram for QgsMessageBarItem:
Inheritance graph
[legend]

Signals

void styleChanged (const QString &styleSheet)
 emitted when the message level has changed More...
 

Public Member Functions

 QgsMessageBarItem (const QString &text, QgsMessageBar::MessageLevel level=QgsMessageBar::INFO, int duration=0, QWidget *parent=nullptr)
 make out a widget containing a message to be displayed on the bar More...
 
 QgsMessageBarItem (const QString &title, const QString &text, QgsMessageBar::MessageLevel level=QgsMessageBar::INFO, int duration=0, QWidget *parent=nullptr)
 make out a widget containing title and message to be displayed on the bar More...
 
 QgsMessageBarItem (const QString &title, const QString &text, QWidget *widget, QgsMessageBar::MessageLevel level=QgsMessageBar::INFO, int duration=0, QWidget *parent=nullptr)
 make out a widget containing title, message and widget to be displayed on the bar More...
 
 QgsMessageBarItem (QWidget *widget, QgsMessageBar::MessageLevel level=QgsMessageBar::INFO, int duration=0, QWidget *parent=nullptr)
 make out a widget containing a widget to be displayed on the bar More...
 
 ~QgsMessageBarItem ()
 
int duration () const
 returns the duration in second of the message More...
 
QString getStyleSheet ()
 returns the styleSheet More...
 
QgsMessageBar::MessageLevel level ()
 returns the level More...
 
QgsMessageBarItemsetDuration (int duration)
 
QgsMessageBarItemsetIcon (const QIcon &icon)
 
QgsMessageBarItemsetLevel (QgsMessageBar::MessageLevel level)
 
QgsMessageBarItemsetText (const QString &text)
 
QgsMessageBarItemsetTitle (const QString &title)
 
QgsMessageBarItemsetWidget (QWidget *widget)
 

Detailed Description

Definition at line 31 of file qgsmessagebaritem.h.

Constructor & Destructor Documentation

§ QgsMessageBarItem() [1/4]

QgsMessageBarItem::QgsMessageBarItem ( const QString &  text,
QgsMessageBar::MessageLevel  level = QgsMessageBar::INFO,
int  duration = 0,
QWidget *  parent = nullptr 
)

make out a widget containing a message to be displayed on the bar

Definition at line 26 of file qgsmessagebaritem.cpp.

§ QgsMessageBarItem() [2/4]

QgsMessageBarItem::QgsMessageBarItem ( const QString &  title,
const QString &  text,
QgsMessageBar::MessageLevel  level = QgsMessageBar::INFO,
int  duration = 0,
QWidget *  parent = nullptr 
)

make out a widget containing title and message to be displayed on the bar

Definition at line 39 of file qgsmessagebaritem.cpp.

§ QgsMessageBarItem() [3/4]

QgsMessageBarItem::QgsMessageBarItem ( const QString &  title,
const QString &  text,
QWidget *  widget,
QgsMessageBar::MessageLevel  level = QgsMessageBar::INFO,
int  duration = 0,
QWidget *  parent = nullptr 
)

make out a widget containing title, message and widget to be displayed on the bar

Definition at line 52 of file qgsmessagebaritem.cpp.

§ QgsMessageBarItem() [4/4]

QgsMessageBarItem::QgsMessageBarItem ( QWidget *  widget,
QgsMessageBar::MessageLevel  level = QgsMessageBar::INFO,
int  duration = 0,
QWidget *  parent = nullptr 
)

make out a widget containing a widget to be displayed on the bar

Definition at line 65 of file qgsmessagebaritem.cpp.

§ ~QgsMessageBarItem()

QgsMessageBarItem::~QgsMessageBarItem ( )

Definition at line 78 of file qgsmessagebaritem.cpp.

Member Function Documentation

§ duration()

int QgsMessageBarItem::duration ( ) const
inline

returns the duration in second of the message

Definition at line 62 of file qgsmessagebaritem.h.

§ getStyleSheet()

QString QgsMessageBarItem::getStyleSheet ( )
inline

returns the styleSheet

Definition at line 68 of file qgsmessagebaritem.h.

§ level()

QgsMessageBar::MessageLevel QgsMessageBarItem::level ( )
inline

returns the level

Definition at line 65 of file qgsmessagebaritem.h.

§ setDuration()

QgsMessageBarItem * QgsMessageBarItem::setDuration ( int  duration)

Definition at line 241 of file qgsmessagebaritem.cpp.

§ setIcon()

QgsMessageBarItem * QgsMessageBarItem::setIcon ( const QIcon &  icon)

Definition at line 234 of file qgsmessagebaritem.cpp.

§ setLevel()

QgsMessageBarItem * QgsMessageBarItem::setLevel ( QgsMessageBar::MessageLevel  level)

Definition at line 210 of file qgsmessagebaritem.cpp.

§ setText()

QgsMessageBarItem * QgsMessageBarItem::setText ( const QString &  text)

Definition at line 196 of file qgsmessagebaritem.cpp.

§ setTitle()

QgsMessageBarItem * QgsMessageBarItem::setTitle ( const QString &  title)

Definition at line 203 of file qgsmessagebaritem.cpp.

§ setWidget()

QgsMessageBarItem * QgsMessageBarItem::setWidget ( QWidget *  widget)

Definition at line 218 of file qgsmessagebaritem.cpp.

§ styleChanged

void QgsMessageBarItem::styleChanged ( const QString &  styleSheet)
signal

emitted when the message level has changed


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