QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Signals | Public Member Functions | List of all members
QgsMessageBarItem Class Reference

#include <qgsmessagebaritem.h>

Inheritance diagram for QgsMessageBarItem:
Inheritance graph
[legend]

Signals

void styleChanged (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=0)
 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=0)
 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=0)
 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=0)
 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 (QString text)
 
QgsMessageBarItemsetTitle (QString title)
 
QgsMessageBarItemsetWidget (QWidget *widget)
 

Detailed Description

Definition at line 29 of file qgsmessagebaritem.h.

Constructor & Destructor Documentation

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

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

Definition at line 26 of file qgsmessagebaritem.cpp.

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

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

Definition at line 39 of file qgsmessagebaritem.cpp.

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

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

Definition at line 52 of file qgsmessagebaritem.cpp.

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

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

Definition at line 65 of file qgsmessagebaritem.cpp.

QgsMessageBarItem::~QgsMessageBarItem ( )

Definition at line 78 of file qgsmessagebaritem.cpp.

Member Function Documentation

int QgsMessageBarItem::duration ( ) const
inline

returns the duration in second of the message

Definition at line 60 of file qgsmessagebaritem.h.

QString QgsMessageBarItem::getStyleSheet ( )
inline

returns the styleSheet

Definition at line 66 of file qgsmessagebaritem.h.

QgsMessageBar::MessageLevel QgsMessageBarItem::level ( )
inline

returns the level

Definition at line 63 of file qgsmessagebaritem.h.

QgsMessageBarItem * QgsMessageBarItem::setDuration ( int  duration)

Definition at line 241 of file qgsmessagebaritem.cpp.

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

Definition at line 234 of file qgsmessagebaritem.cpp.

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

Definition at line 210 of file qgsmessagebaritem.cpp.

QgsMessageBarItem * QgsMessageBarItem::setText ( QString  text)

Definition at line 196 of file qgsmessagebaritem.cpp.

QgsMessageBarItem * QgsMessageBarItem::setTitle ( QString  title)

Definition at line 203 of file qgsmessagebaritem.cpp.

QgsMessageBarItem * QgsMessageBarItem::setWidget ( QWidget *  widget)

Definition at line 218 of file qgsmessagebaritem.cpp.

void QgsMessageBarItem::styleChanged ( QString  styleSheet)
signal

emitted when the message level has changed


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