Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QAbstractMediaMenuItem Class Reference
[QtMediaModule]

The QAbstractMediaMenuItem class provides a base class for QMediaMenuItem More...

    #include <QAbstractMediaMenuItem>

Inherits QObject.

Inherited by QMediaMenuItem.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QAbstractMediaMenuItem class provides a base class for QMediaMenuItem

The QAbstractMediaMenuItem class is used to create a custom menu item used with a QMediaMenu


Member Function Documentation

QAbstractMediaMenuItem::QAbstractMediaMenuItem ( QMediaList::Roles role, QMediaList * data )

Constructs item with role set to QMediaList::Roles and a QMediaList of data

QAbstractMediaMenuItem::QAbstractMediaMenuItem ( QMediaList::Roles role, QString filter, QMediaList * data )

Constructs item with role set to QMediaList::Roles, filtered by filter and a QMediaList of data

QAbstractMediaMenuItem::QAbstractMediaMenuItem ( QIcon * icon, QString text, QMediaList * data )

Constructs item with QIcon icon display text text and a QMediaList of data

QAbstractMediaMenuItem::QAbstractMediaMenuItem ()

Constructs item

void QAbstractMediaMenuItem::add ( QAbstractMediaMenuItem * item )

Add item to items submenu

QMediaList * QAbstractMediaMenuItem::data ()

Returns current QMediaList

See also setData().

void QAbstractMediaMenuItem::dataChanged ()   [signal]

This signal is emitted when display contents has changed.

QMediaList::Roles QAbstractMediaMenuItem::displayRole ()

Returns current display Role

bool QAbstractMediaMenuItem::execute ()   [pure virtual]

Returns true if next selection is to be emitted This function is executed when item is selected but has no submenu

const QString & QAbstractMediaMenuItem::filter ()

Returns current filter string

QIcon * QAbstractMediaMenuItem::icon ()

Returns current icon, null if no icon

int QAbstractMediaMenuItem::level ()

Returns current level

See also setLevel().

void QAbstractMediaMenuItem::paint ( QPainter * painter, const QStyleOptionViewItem & option )   [pure virtual]

Implement for custom menu items, handle your own drawing painter QPainter option QStyleOptionViewItem

Implement size() to return valid QSize

void QAbstractMediaMenuItem::remove ( QAbstractMediaMenuItem * item )

Remove item from items submenu

void QAbstractMediaMenuItem::setData ( QMediaList * l )

Set the QMediaList l as the data source for item

See also data().

void QAbstractMediaMenuItem::setLevel ( int l )

Set the items level to l

See also level().

QSize QAbstractMediaMenuItem::size ()   [pure virtual]

Returns size hint for item display, QSize(-1,-1) to use defaults

QString QAbstractMediaMenuItem::text ()

Returns current display text


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3