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

void KPureftpdScript::slotScriptListDClicked ( QListViewItem *  item  )  [protected, slot]

Execute the slotScriptAdd() or slotScriptEdit() according with the type o double-clicked item.

Parameters:
item is the selected element in the "scriptList" list view

Definition at line 684 of file kcmpureftpdscript.cpp.

Referenced by KPureftpdScript().

                                                                {
  if (item == 0L) {
    // no item in the ListView?
  } else {
    if (listMap.contains((KListViewItem*)item)) {
      QString id=listMap[(KListViewItem*)item];
      if (id.left(1) == "/") {
        // it's script template
        slotScriptAdd();
      } else {
        // it's script
        slotScriptEdit();
      }
    } else {
      // the item is a toplevel item
    }
  }
}


Generated by  Doxygen 1.6.0   Back to index