Qt Reference Documentation

QMaemo5EditBar Class Reference

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

  • 58 properties inherited from QWidget
  • 1 property inherited from QObject

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
  • 217 public functions inherited from QWidget
  • 29 public functions inherited from QObject
  • 13 public functions inherited from QPaintDevice

Public Slots

void setText ( const QString & text )
  • 19 public slots inherited from QWidget
  • 1 public slot inherited from QObject

Reimplemented Protected Functions

virtual void paintEvent ( QPaintEvent * pe )
  • 37 protected functions inherited from QWidget
  • 7 protected functions inherited from QObject
  • 1 protected function inherited from QPaintDevice

Additional Inherited Members

  • 1 signal inherited from QWidget
  • 1 signal inherited from QObject
  • 4 static public members inherited from QWidget
  • 5 static public members inherited from QObject
  • 37 protected functions inherited from QWidget
  • 7 protected functions inherited from QObject
  • 1 protected function inherited from QPaintDevice
  • 1 protected slot inherited from QWidget

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().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();