QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | List of all members
QgsMessageBarItem Class Reference

#include <qgsmessagebaritem.h>

Signals

void styleChanged (QString styleSheet)
 emitted when the message level has changed

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
 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
 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
 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
 ~QgsMessageBarItem ()
QgsMessageBarItemsetText (QString text)
QgsMessageBarItemsetTitle (QString title)
QgsMessageBarItemsetLevel (QgsMessageBar::MessageLevel level)
QgsMessageBarItemsetWidget (QWidget *widget)
QgsMessageBarItemsetIcon (const QIcon &icon)
QgsMessageBarItemsetDuration (int duration)
int duration () const
 returns the duration in second of the message
QgsMessageBar::MessageLevel level ()
 returns the level
QString getStyleSheet ()
 returns the styleSheet

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

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

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

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

QgsMessageBarItem::~QgsMessageBarItem ( )

Member Function Documentation

int QgsMessageBarItem::duration ( ) const
inline

returns the duration in second of the message

QString QgsMessageBarItem::getStyleSheet ( )
inline

returns the styleSheet

QgsMessageBar::MessageLevel QgsMessageBarItem::level ( )
inline

returns the level

QgsMessageBarItem * QgsMessageBarItem::setDuration ( int  duration)
QgsMessageBarItem * QgsMessageBarItem::setIcon ( const QIcon &  icon)
QgsMessageBarItem * QgsMessageBarItem::setLevel ( QgsMessageBar::MessageLevel  level)
QgsMessageBarItem * QgsMessageBarItem::setText ( QString  text)
QgsMessageBarItem * QgsMessageBarItem::setTitle ( QString  title)
QgsMessageBarItem * QgsMessageBarItem::setWidget ( QWidget *  widget)
void QgsMessageBarItem::styleChanged ( QString  styleSheet)
signal

emitted when the message level has changed


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