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

void AddEmoticonDialog::preSelect ( const QString &  pictureName,
const QString &  shortcut 

Preselects a file name and an emoticon shortcut in the dialog

pictureNameFull path to the file that will be added
shortcutEmoticon shortcut to preselect

Definition at line 234 of file addemoticondialog.cpp.

References KMessShared::htmlUnescape().

Referenced by ChatView::slotAddNewEmoticon().

  // Select the image. Disable the field also to avoid messing up with the name.
  pictureEdit_->setText( pictureName );
  pictureEdit_->setEnabled( pictureName.isEmpty() );
  browseButton_->setEnabled( pictureName.isEmpty() );

  // Select the shortcut, and save it so later we can tell everyone we've added this particular emoticon
  preselectedShortcut_ = shortcut;

  // Select the shortcut, decoded from HTML to show it in its original form
  shortcutEdit_->setText( KMessShared::htmlUnescape( shortcut ) );

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