Logo Search packages:      
Sourcecode: kmess version File versions  Download package

bool EmoticonTheme::contains ( QString  shortcut )

Check if the theme contains a certain emoticon

Parameters:
shortcutThe shortcut text to search for

Definition at line 132 of file emoticontheme.cpp.

References Emoticon::getShortcuts().

Referenced by AddEmoticonDialog::slotButtonClicked().

{
  foreach( Emoticon *emoticon, emoticons_ )
  {
    if( emoticon->getShortcuts().indexOf( shortcut ) != -1 )
    {
      return true;
    }
  }

  return false;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index