MCPcopy Create free account
hub / github.com/LMMS/lmms / findText

Method findText

src/core/ComboBoxModel.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55int ComboBoxModel::findText( const QString& txt ) const
56{
57 for( QVector<Item>::ConstIterator it = m_items.begin(); it != m_items.end(); ++it )
58 {
59 if( ( *it ).first == txt )
60 {
61 return it - m_items.begin();
62 }
63 }
64 return -1;
65}
66
67
68

Callers 7

showMethod · 0.80
reconnectSoundIoMethod · 0.80
SetupDialogMethod · 0.80
SongEditorMethod · 0.80
AutomationEditorMethod · 0.80
PianoRollMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected