Logo Search packages:      
Sourcecode: kmess version File versions

const Emoticon * EmoticonTheme::getEmoticon ( QString  shortcut  )  const

Obtain an emoticon by its shortcut

shortcut Text shortcut of the emoticon to get.
Pointer to the emoticon. Zero on failure.

Definition at line 248 of file emoticontheme.cpp.

References Emoticon::getShortcuts().

Referenced by EmoticonsPage::customEmoticonRenamed().

  foreach( Emoticon *emoticon, emoticons_ )
    if( emoticon->getShortcuts().contains( shortcut ) )
      return emoticon;

  return 0;

Generated by  Doxygen 1.6.0   Back to index