Logo Search packages:      
Sourcecode: kmess version File versions

bool EmoticonTheme::contains ( QString  shortcut  ) 

Check if the theme contains a certain emoticon

Parameters:
shortcut The shortcut text to search for

Definition at line 132 of file emoticontheme.cpp.

References Emoticon::getShortcuts().

Referenced by EmoticonsPage::customEmoticonRenamed(), and AddEmoticonDialog::slotButtonClicked().

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

  return false;
}


Generated by  Doxygen 1.6.0   Back to index