Logo Search packages:      
Sourcecode: qt4-x11 version File versions

template<ObjectDescriptionType type>
int Phonon::ObjectDescriptionModel< type >::tupleIndexAtPositionIndex ( int  positionIndex  )  const [inline]

Returns the ObjectDescription::index for the tuple at the given position positionIndex. For example a QComboBox will give you the currentIndex as the position in the list. But to select the according AudioOutputDevice using AudioOutputDevice::fromIndex you can use this method.

positionIndex The position in the list.

Definition at line 254 of file objectdescriptionmodel.h.

References Phonon::ObjectDescriptionModelData::tupleIndexAtPositionIndex().

{ return d->tupleIndexAtPositionIndex(positionIndex); } //krazy:exclude=inline

Generated by  Doxygen 1.6.0   Back to index