Home · All Classes · All Functions · Overviews

QMaemo5EditBar Class Reference
[QtGui module]

The QMaemo5EditBar widget provides a Maemo 5 specific edit toolbar showing a label and an arbitrary number of buttons. More...

 #include <QMaemo5EditBar>

Inherits QWidget.

This class was introduced in Qt 4.6.


Properties


Public Functions

QMaemo5EditBar ( QWidget * parent = 0 )
QMaemo5EditBar ( const QString & text, QWidget * parent = 0 )
~QMaemo5EditBar ()
void addButton ( QAbstractButton * button )
QList<QAbstractButton *> buttons () const
void removeButton ( QAbstractButton * button )
QString text () const

Public Slots

void setText ( const QString & text )

Reimplemented Protected Functions

virtual void paintEvent ( QPaintEvent * pe )

Additional Inherited Members


Detailed Description

The QMaemo5EditBar widget provides a Maemo 5 specific edit toolbar showing a label and an arbitrary number of buttons.

The Maemo 5 edit bar class is a Maemo 5 specific class that is used to implement the Hildon edit-toolbar functionality in full screen widgets.

This widget needs to be shown at the top edge of a full screen widget. Clicking the "back" button on the edit bar will call close() on the edit bar's window().

Please see the Maemo 5 Widget, UI-Style and Master-Layout guides for hints on when, where and how to best use this button.


Property Documentation

text : QString

This property holds the text shown on the edit bar.

If the edit bar has no text, the text() function will return an empty string.

There is no default text.

Access functions:

QString text () const
void setText ( const QString & text )

Member Function Documentation

QMaemo5EditBar::QMaemo5EditBar ( QWidget * parent = 0 )

Constructs an empty edit bar with the given parent.

QMaemo5EditBar::QMaemo5EditBar ( const QString & text, QWidget * parent = 0 )

Constructs an edit bar with the given parent widget and editable text.

QMaemo5EditBar::~QMaemo5EditBar ()

Destroys the edit bar.

void QMaemo5EditBar::addButton ( QAbstractButton * button )

Adds the given button to the edit bar.

See also removeButton() and buttons().

QList<QAbstractButton *> QMaemo5EditBar::buttons () const

Returns a list of all the buttons that have been added to the edit bar.

See also addButton() and removeButton().

void QMaemo5EditBar::paintEvent ( QPaintEvent * pe )   [virtual protected]

Reimplemented from QWidget::paintEvent().

void QMaemo5EditBar::removeButton ( QAbstractButton * button )

Removes button from the edit bar without deleting it.

See also addButton() and buttons().


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.2