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

void KarchiveurApp::slotShowContextualMenu ( QListViewItem *  l,
const QPoint &  pos,
int   
) [protected, slot]

The user right-clicked on a file in the listview, so we'll display a contextual menu

Definition at line 1272 of file karchiveur.cpp.

References displayMessageArchiveSize(), and view.

Referenced by KarchiveurApp().

                                                                                     {
  if(archiveobj==NULL)
    return;

  QListViewItem * item = view->firstChild();
  selectedfilesStatusbarMessage.nbselectedfiles=0;
  selectedfilesStatusbarMessage.sizeselectedfiles=0;
  
  while( item ) {
    if(item->isSelected())
    {
      selectedfilesStatusbarMessage.nbselectedfiles++;
      selectedfilesStatusbarMessage.sizeselectedfiles+=item->text(1).toInt();
    }
      item = item->nextSibling();
  }
  displayMessageArchiveSize();
      

////  contextualMenu->exec(pos);
 QPopupMenu *pop = (QPopupMenu *)factory()->container("popup_list", this);
 pop->popup(pos);
}


Generated by  Doxygen 1.6.0   Back to index